Home > Enterprise >  What are the actual request headers sent in the Intellij HTTP client?
What are the actual request headers sent in the Intellij HTTP client?

Time:06-07

IntelliJ has an HTTP client. When composing a file that is interpreted by the HTTP client, you can specify headers that go out to the server with the request, like so:

###
GET https://{{hostname}}/{{path}}
Content-Type: application/json
X-Auth-Token: {{x-token}}

I want to find the actual value of the token that was used to replace the variable name, seen above as {{x-token}}, but I don't see any way to obtain the request headers. The response headers are obviously available, but not the request headers. See the image below for the test results that are shown after running the HTTP client inside Intellij:

enter image description here

Is there a way to display the REQUEST headers?

Link to IntelliJ Documentation - HTTP Client -- the documentation seems to never mention the actual request headers that are sent over the wire, but they do discuss how to define request headers in composing the .http file type.

CodePudding user response:

Check the Tools | HTTP Client | 'Show HHTP Requests History' action.

  • Related