HTTP 헤더

John Jeong (토론 | 기여)님의 2017년 1월 3일 (화) 10:58 판 (→‎요청필드)

1 개요

HTTP header, HTTP header fields
HTTP 헤더, HTTP 헤더 필드
  • HTTP 요청 및 응답 메시지의 헤더 부분

2 요청필드

헤더 필드명 설명 예시
Accept 콘텐츠 타입 text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Charset 캐릭터셋 Accept-Charset: utf-8
Accept-Encoding 인코딩 Accept-Encoding: gzip, deflate
Connection 커넥션 Connection: keep-alive
Connection: Upgrade
Referer 리퍼러 Referer: http://en.wikipedia.org/wiki/Main_Page
X-Forwarded-For 포워딩 X-Forwarded-For: client1, proxy1, proxy2
X-Forwarded-For: 129.78.138.66, 129.78.64.103
X-Forwarded-Host 호스트 포워딩 X-Forwarded-Host: en.wikipedia.org:80
X-Forwarded-Host: en.wikipedia.org
Warning 경고 Warning: 199 Miscellaneous warning

3 응답필드

헤더 필드명 설명 예시
Access-Control-Allow-Origin CORS 허용범위 Access-Control-Allow-Origin: *
Age 프록시 캐시에 있던 시간(초) Age: 12
Cache-Control 서버의 캐시설정시간(초) Cache-Control: max-age=3600
Connection 커넥션 Connection: close
Content-Disposition 콘텐츠 성격 Content-Disposition: attachment; filename="hello.png"
Content-Encoding 콘텐츠 인코딩 Content-Encoding: gzip
Content-Length 콘텐츠 길이 Content-Length: 348
Content-Type 콘텐츠 유형 Content-Type: text/html; charset=utf-8
Date Date: Tue, 15 Nov 1994 08:12:31 GMT
ETag ETag: "737060cd8c284d8af7ad3082f209582d"
Expires Expires: Thu, 01 Dec 1994 16:00:00 GMT
Location
Pragma Pragma: no-cache
Server Server: Apache/2.4.1 (Unix)
Via Via: 1.1 varnish

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}