This is a migrated thread and some comments may be shown as answers.

Access Http Request members from code behind

1 Answer 70 Views
Feature Wishlist
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 02 May 2018, 03:43 PM
We have custom authorization (signed messages, etc) that require us to have access to the http method type, body, url, and some other things to properly sign each http request. I have this working for the most part but it would be a lot easier if I had access to get the members of a specific request. Maybe putting a code behind directly on a request step would work too? Whatever I'm doing is kind of hacky, that's for sure.

1 Answer, 1 is accepted

Sort by
0
Oleg
Telerik team
answered on 04 May 2018, 04:36 PM
Hi,

Thanks for sharing this feedback. It is an interesting use case indeed.
If I understand correctly, it would be useful for your case to have some kind of pre-execute script that triggers before the http request is run. We will consider that as a potential feature. We will have to evaluate what the cost of implementation would be and if there would be any blockers for that. To help us determine if that would benefit other users too, I submitted a feature request for that in our Feedback Portal on your behalf. Please feel free to add more comments if I did not describe your feature request properly.


Aside from that, as a workaround, you could currently have the properties you need stored in variables in advance, work with them in a coded step to generate what is needed for the request, store the generated data (headers, URL, body) in other variables and finally use those variables to set the final state of all members of the http request yourself (you can set the method of the http request using a variable reference, just like you can for the URL, headers or body).
I guess you might be doing just that already, but I just wanted to mention it just in case.

Thanks again for your feedback.

Regards,
Oleg
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Feature Wishlist
Asked by
Joe
Top achievements
Rank 1
Answers by
Oleg
Telerik team
Share this question
or