From e67bc965ed2d422783dbf77af0999092b78a5156 Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:51:02 +0100 Subject: [PATCH] add cgi condition --- subjects/localhost/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/localhost/README.md b/subjects/localhost/README.md index 27bda5dd..94cc808f 100644 --- a/subjects/localhost/README.md +++ b/subjects/localhost/README.md @@ -24,6 +24,7 @@ Server is Runing in http://[IP]:[PORT] - You must handle customization errors **(Binding error, default page error...)** - You must create error page at leat for [400,311,403,404,405,413] - You must execute CGI based on certain file extensions [`.php`,`.py`,...] +- The `CGI` should be run in the correct directory for relative path file access. - You must use the enverement paramatre of cgi. - Your server must receive a request from the browser and send a response using the HTTP header and body - Your server must call `select` function (or equivalent function) one time only @@ -32,7 +33,6 @@ Server is Runing in http://[IP]:[PORT] here is an example of an HTTP request with `GET` method ```http - GET /Welcome.html HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT) Host: www.01talent.com