42-webserv / SpaceX

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

[⚙] cgi #79

Closed codeyoma closed 1 year ago

codeyoma commented 1 year ago

내용

      CGI-Response = document-response | local-redir-response |
                     client-redir-response | client-redirdoc-response

https://www.rfc-editor.org/rfc/rfc3875#section-6.2.2 6.2.2. Local Redirect Response

   The CGI script can return a URI path and query-string
   ('local-pathquery') for a local resource in a Location header field.
   This indicates to the server that it should reprocess the request
   using the path specified.

      local-redir-response = local-Location NL

   The script MUST NOT return any other header fields or a message-body,
   and the server MUST generate the response that it would have produced
   in response to a request containing the URL

      scheme "://" server-name ":" server-port local-pathquery



태스크