Reputation: 309
In http1.1, when I make a http GET request: "https://www.google.com/?name=jack", I can see the 'Query String Parameters' in chrome debug console:
My question is: Is the 'Query String Parameters' part of Header or Body or neither? I can not find the definition about 'Query String Parameters' in HTTP1.1 spec.
Upvotes: 7
Views: 12127
Reputation: 343
It's part of the request line which exists in every HTTP Request. Source: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
Request message
The request message consists of the following:
- a request line (e.g., GET /images/logo.png HTTP/1.1, which requests a resource called /images/logo.png from the server.)
- request header fields (e.g., Accept-Language: en).
- an empty line
- an optional message body
Upvotes: 0
Reputation: 59
Query Strings Parameters are part of the request line as described in https://httpwg.org/specs/rfc7230.html#request.line.
You can see an example usage in https://httpwg.org/specs/rfc7230.html#origin-form
For your example (https://www.google.com/?name=jack), the request line would be
GET /?name=jack HTTP/1.1
Upvotes: 4