
611
부록 C HTTP 헤더 레퍼런스
The Definitive Guide
는 서버 소프트웨어가 어떤 값을 돌려주는지 시험해보아야 할 것이다. 왜냐하면 그
값은 제품마다 다르고 버전마다 달라지기 때문이다.
User-Agent 헤더의 경우와 마찬가지로, 오래된 프락시나 게이트웨이가 Via 헤더
에 들어갈 만한 분량의 값을 Server 헤더에 집어넣어도 놀라지 말라.
유형
응답 헤더
기본 문법
Server: 1* (product | comment)
예
Server: Microsoft-Internet-Information-Server/1.0
Server: websitepro/1.1f (s/n wpo-07d0)
Server: apache/1.2b6 via proxy gateway CERN-HTTPD/3.0
libwww/2.13
Set-Cookie
Set-Cookie 헤더는 Cookie 헤더의 동료다. 11장에서 우리는 이 헤더의 사용방법을
자세히 다룬다.
유형
확장 응답 헤더
기본 문법
Set-Cookie: command
예
Set-Cookie: lastorder=00183; path=/orders
Set-Cookie: private_id=519; secure
Set-Cookie2
Set-Cookie2 헤더는 Set-Cookie 헤더의 확장이다. 우리는 11장에서 이 헤더의