Code: Select all
GET / HTTP/1.1
User-Agent: Download Master
Accept: */*
Accept-Encoding: identity
Referer: http://localhost:8080/
Cache-Control: no-cache
Host: localhost
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14#sec14.23 wrote:A "host" without any trailing port information implies the default port for the service requested (e.g., "80" for an HTTP URL).
Подробнее: http://ru.stackoverflow.com/q/479974/178988https://tools.ietf.org/html/rfc7230#section-2.7.1 wrote:If the port subcomponent is empty or not given, TCP port 80 (the reserved port for WWW services) is the default.