Open johu opened 9 years ago
To clarify: you're saying that the entire response should be quoted?
Like if the response body is:
{ "foo" : "bar" }
You want to see in the raw output:
"{ "foo" : "bar" }"
?
I think raw output should behave like curl on the commandline. When "{ "foo" : "bar" }" is what the servlet/controller returns it should be printed as this. The current behavior of HttpRequester is to drop the outer double quotes which means it is not the raw output.
Ohhh so in your case the response actually included the quotes around the value, and they were being stripped off. That is not intentional and may be a bug with that specific situation. I'll have a look, thanks.
On Wed, Mar 11, 2015 at 3:53 AM, Johannes Huber notifications@github.com wrote:
I think raw output should behave like curl on the commandline. When "{ "foo" : "bar" }" is what the servlet/controller returns it should be printed as this.
— Reply to this email directly or view it on GitHub https://github.com/tommut/HttpRequester/issues/6#issuecomment-78218794.
Thanks in advance.
I have noticed that the raw output doesn't contain double quotes. This is not intuitive for debugging.
A simple example. Create an response controller which return urls as response String (like mimetype application/json): https://somehost:9002/controller/response returned with curl: "https://somereturnaddress/;sessionid=1234545477676578" with HttpRequest https://somereturnaddress/;sessionid=1234545477676578