Skip to content

networkop/test-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo web server

Actions

  1. curl -H http://{ip}:8080/

Returns standard server metadata, including:

  • hostname
  • public IP (discovered via ifconfig.co)
  • private IP
  • client IP (as seen by the web server)
  1. curl -H 'Accept: application/json' http://{ip}:8080/

Returns the same server metadata in JSON format

  1. curl "http://{ip}:8080/json"

Same as #2

  1. curl "http://{ip}:8080/?crawl=$(echo 'google.com,aws.amazon.com' | base64 -w0)"

Same as #1 but also instructs the web server to crawl the list of hostnames, encoded as comma-separated base64 string.

  1. curl -O "http://{ip}:8080/download"

Download a 1MB file (with randomly generated content)

  1. curl -O "http://{ip}:8080/download?sizeMB=1000"

Download a file of arbitrary size (max size is 1GB)

  1. curl -v -F test-download=@download http://localhost:8080/upload

Upload a file to the webserver (the content is discarded)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages