42-webserv / SpaceX

Non-blocking I/O HTTP WEB Server
2 stars 1 forks source link

[✅] URI 파싱 #18

Closed codeyoma closed 1 year ago

codeyoma commented 1 year ago

내용

localhost:80/script.php?name=John

origin-form -> 자동으로

origin-form = absolute-path [ "?" query ] http://www.example.org/where?q=now

GET /where?q=now HTTP/1.1
Host: www.example.org

absolute-form -> 프록시 일때만

absolute-form = absolute-URI GET http://www.example.org/pub/WWW/TheProject.html HTTP/1.1


authority-form -> CONNECT 요청에만 asterisk-form -> OPTIONS 요청에만



TASK

PATH

codeyoma commented 1 year ago

For example, the following three URIs are equivalent:

   http://example.com:80/~smith/home.html
   http://EXAMPLE.com/%7Esmith/home.html
   http://EXAMPLE.com:/%7esmith/home.html

rfc 9110 에서