■ HTTP 1.0 RFC
https://datatracker.ietf.org/doc/html/rfc1945
■ HTTP 1.1 RFC
https://datatracker.ietf.org/doc/html/rfc2616
■ 메시지 포멧
□ Request
Request-Line = Method SP Request-URI SP HTTP-Version CRLF
□ 예시1
GET /user/chobocho27 HTTP/1.1
□ 예시2
GET / HTTP/1.1
Host: 127.0.0.1:5000
Connection: keep-alive
Cache-Control: max-age=0
Sec-Ch-Ua: "Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7
□ Response
HTTP/1.1 200 OK
'Coding > Python 삽질기' 카테고리의 다른 글
[Python] Python 소스 코드 빌드 해보기 (1) | 2023.09.06 |
---|---|
[AI] Stable Diffusion 설치 하기 (0) | 2023.06.09 |
[Python] PyTorch 설치 (0) | 2023.04.05 |