우리는 http에서 tcp를 사용한다는 것을 알고 있습니다. tcp connection에서 origin과 destination은이 문장에 따라 우리가 Http header에 host를 지정하는 이유를 지정합니다. 예를 들어 :우리가 이미 알고있는 것처럼 /Http 헤더에 호스트를 지정하는 이유는 무엇입니까?
GET /index.html HTTP/1.1\r\n
Host: www-net.cs.umass.edu\r\n
User-Agent: Firefox/3.6.10\r\n
Accept: text/html,application/xhtml+xml\r\n
Accept-Language: en-us,en;q=0.5\r\n
Accept-Encoding: gzip,deflate\r\n
Accept-Charset: ISO-8859-1,utf-8;q=0.7\r\n
Keep-Alive: 115\r\n
Connection: keep-alive\r\n
\r\n
TCP 헤더에 호스트와 같은 것이 없습니다. TCP 헤더는 https://en.wikipedia.org/wiki/Transmission_Control_Protocol#TCP_segment_structure를 참조하십시오. –
죄송합니다. 내 질문을 편집합니다. –