curl --resolve webserv42.fr:8080:127.0.0.1 webserv42.fr:8080curl 127.0.0.1:9900send data:
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "param1=value1¶m2=value2" 127.0.0.1:9900upload a text file:
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'Hello World!' 127.0.0.1:9900/uploads/test.txtdelete a resource that exists:
curl -X DELETE localhost:9900/uploads/minishell.jpgdelete a resource that doesn't exist:
curl -X DELETE localhost:9900/uploads/void/minishell.jpgdelete a resource that's forbidden:
curl -X DELETE localhost:9900/uploads/forbidden.jpgsiege -b 127.0.0.1:9900send a cookie to the server:
curl --cookie "Name=Value" 127.0.0.1:9900