tommut / HttpRequester

HttpRequester add-on for Firefox
https://addons.mozilla.org/En-us/firefox/addon/httprequester/
161 stars 39 forks source link

Raw output drops quote characters #6

Open johu opened 9 years ago

johu commented 9 years ago

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

tommut commented 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" }" ?

johu commented 9 years ago

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.

tommut commented 9 years ago

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.

johu commented 9 years ago

Thanks in advance.