tommut / HttpRequester

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

Sent headers (feature request) #1

Open Lagg opened 9 years ago

Lagg commented 9 years ago

I'm really liking this extension. It's a hell of a lot better than RESTClient that's for sure. One of the very few things that it's missing though is a display of what (non-custom) headers were sent in a manner similar to the headers shown in the response pane. Seeing such things is very useful for the servers that have conditional responses based on things like user agent and things of that nature.

Perhaps a combined display of both the non-custom and custom headers that reflects the layout of the response pane?

tommut commented 9 years ago

Can you give an example? Are you talking about the display of Response headers? The response view should show all of the response headers as returned from the server.
Or are you saying that you want to see which Request headers were sent?

Lagg commented 9 years ago

The latter, in a manner similar to how they're shown in the Response pane. Hilariously I only just now realized that the panes have groupbox controls naming them. Sorry for ambiguity if there was any :/

tommut commented 9 years ago

Ok I gotcha. Those other headers get added somewhere down the line by Firefox, after I've called the Mozilla XMLHttpRequest API with the custom headers. There's likely a way to get a handle on the ones that Firefox adds by default, but I'll have to poke around to see exactly how.

On Mon, Nov 10, 2014 at 5:24 PM, Anthony Garcia notifications@github.com wrote:

The latter, in a manner similar to how they're shown in the Response pane. Hilariously I only just now realized that the panes have groupbox controls naming them. Sorry for ambiguity if there was any :/

— Reply to this email directly or view it on GitHub https://github.com/tommut/HttpRequester/issues/1#issuecomment-62467176.

Lagg commented 9 years ago

I actually tried poking around the MDN to see if I could give a suggestion for this rather than just "I want this" but couldn't find much besides the SDK request class. One possibility is that the headers prop gets populated with the builtin headers it sends after the request is actually made. Not sure. Something to experiment with though.

bubbleguuum commented 9 years ago

The ability to display what exact request headers are being sent is indeed missing.