DjIns1ght DjIns1ght - 6 months ago 24
HTML Question

What does the "" refer to in a GET request?

What does the "" refer to in the GET request such as this F5 health monitor example:

GET /somefolder HTTP/1.1\r\nHost:\r\nConnection: Close\r\n\r\n

GET / [uri path]
HTTP/1.1 [http encoding]
[Carriage Return/LineFeed]
Host: [required for http 1.1 to specify the next part] <**?????**>
Connection: Close [command to end query request]


Simply put, it's saying which domain the request is intended for. You're asking for path / but a single server could be serving hundreds of domains, so it needs to know which / you want.