Skip to content

Simple web server for inspecting (echo) incoming HTTP requests.

License

Notifications You must be signed in to change notification settings

cxmcc/webinspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webinspect

Simple web server for inspecting (echo) incoming HTTP requests

Run server

docker run -p 8080:8080 cxmcc/webinspect

Example Output

  • Visit from browser
=== path ===
/
=== method===
GET
=== remote_address ===
127.0.0.1
=== headers ===
Cookie: cookiename=cookievalue
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Connection: keep-alive
Dnt: 1
Host: localhost:8080
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate, br
=== cookies ===
cookiename: cookievalue
=== data ===

=== curl ===
curl http://localhost:8080/ --header "Cookie: cookiename=cookievalue" --header "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" --header "Connection: keep-alive" --header "Dnt: 1" --header "Host: localhost:8080" --header "Upgrade-Insecure-Requests: 1" --header "Cache-Control: max-age=0" --header "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" --header "Accept-Language: en-US,en;q=0.9" --header "Accept-Encoding: gzip, deflate, br"
  • curl
$ curl localhost:8080
=== path ===
/
=== method===
GET
=== remote_address ===
127.0.0.1
=== headers ===
User-Agent: curl/7.47.0
Host: localhost:8080
Accept: */*
=== cookies ===
=== data ===

=== curl ===
curl http://localhost:8080/ --header "User-Agent: curl/7.47.0" --header "Host: localhost:8080" --header "Accept: */*"

About

Simple web server for inspecting (echo) incoming HTTP requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published