- 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)
- curl -H 'Accept: application/json' http://{ip}:8080/
Returns the same server metadata in JSON format
- curl "http://{ip}:8080/json"
Same as #2
- 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.
- curl -O "http://{ip}:8080/download"
Download a 1MB file (with randomly generated content)
- curl -O "http://{ip}:8080/download?sizeMB=1000"
Download a file of arbitrary size (max size is 1GB)
- curl -v -F test-download=@download http://localhost:8080/upload
Upload a file to the webserver (the content is discarded)