Http Client option getting request url or query parameters
已回答
Is there any option to get request url of query parameter in post process script?
# @no-cookie-jar
< {%
request.variables.set("id", ["af6dhhhhh46e68c9b5a8b75704042","af6dhhdsadsada8c9b5a8b75704042"])
%}
# @no-log
GET https://example.com/app?appId={{id}}
> {%
console.log("url:", request.url);
%}
请先登录再写评论。
Hi Bogumil Dzienis
There's a way, I have a simple example with the next code that maybe you can adapt to your needs:
If I run the code as is, it shows the next response in “Response Handler” inside the Services tool window:
I hope this is exactly what you were looking for. If you have any other questions, please let me know.