-
My servers are throwing an 400 error when they get requests with a parameter like
Unfortunately, when I try to test this with hurl
the parameter gets encoded and the servers respond with 200:
Is there a way to not encode the parameters defined in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @muffl0n Parameters in
$ hurl test.hurl
error: Parsing URL
--> /tmp/url/url2.hurl:1:44
|
1 | GET https://www.example.com/index.html?foo={bar}
| ^ illegal character <{>
| The only way I see to do this is to "trick" the parser and use a variable in the URL:
It's not pretty but it's working😅 (not that, in this case, the curl logs shown with |
Beta Was this translation helpful? Give feedback.
Hi @muffl0n
Parameters in
[QueryStringParams]
section are always url encoded. You could write the URl directly without the query section, but there is a parsing error if we want a request tohttps://www.example.com/index.html?foo={bar}
:The only way I see to do this is to "trick" the parser and use a variable in the URL:
It's not pretty but it…