-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from samih713/CGI-Parser
feat(#21): CGI parsing done
- Loading branch information
Showing
15 changed files
with
405 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/python3 | ||
print("hello worled") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
echo "Hello, World Bash!" | ||
sleep 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
https://www.oreilly.com/library/view/cgi-programming-on/9781565921689/04_chapter-01.html //good aticla for CGi | ||
http://www.mnuwer.dbasedeveloper.co.uk/dlearn/web/session01.htm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
http { | ||
server { | ||
listen 8080; | ||
client_max_body_size 1M; | ||
server_name localhost; | ||
|
||
root ./.resources; | ||
index index.html index.htm; | ||
|
||
location / { | ||
root ./.resources/sample_pages; | ||
} | ||
|
||
error_page 404 /404.html; | ||
location = /404.html { | ||
root ./.resources/sample_pages; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
curl -X GET http://localhost:8080/cgi-bin/file.sh?name=hashim \ | ||
-H "Host: Linode.com" \ | ||
-H "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20091102 Firefox/3.5.5" \ | ||
-H "Accept-Encoding: gzip,deflate" \ | ||
-H "Accept-Charset: ISO-8859-1,utf-8" \ | ||
-H "Cache-Control: no-cache" \ | ||
-d $'body\r\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.