Curl
Multipart upload: curl http://demo.libcurl.so/lab -F "@file=dummy.txt"
Directory traversal: curl http://demo.libcurl.so/lab -F "filename=@dummy.txt;filename=@../../dummy.txt"
POST with content
// POST
curl -X POST -d "<key><value>please</value></key>" http://demo.libcurl.so/lab
curl -X POST -d "<key><value>please</value></key>" -H "Content-Type:application/xml" http://demo.libcurl.so/lab
curl --data '<key><value><please></value></key>' -H "Content-Type:application/xml" http://demo.libcurl.so/lab
&please
curl --data '<key><value>&please</value></key>' -H "Content-Type:application/xml" http://demo.libcurl.so/lab
curl -X POST --data '<key value=""please"></key>' -H "Content-Type:application/xml" http://demo.libcurl.so/lab
JSON:
curl -X POST --data '{"key": "please"}' -H "Content-Type:application/json" http://demo.libcurl.so/lab
YAML
curl -X POST --data "key: please" -H "Content-Type:application/yaml" http://demo.libcurl.so/lab
yaml binary
curl http://demo.libcurl.so/lab -H "Content-Type:application/yaml" --data-binary @http_41
send
send a GET request to /lab with an authentication Basic with the username key and the password please
curl http://demo.libcurl.so/lab -u "key:please"
Last updated
Was this helpful?