Advertisement
Guest User

Untitled

a guest
Sep 29th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. curl --data "param1=value1&param2=value2" https://example.com/resource.cgi
  2.  
  3. curl --form "fileupload=@my-file.txt" https://example.com/resource.cgi
  4.  
  5. curl --form "fileupload=@my-file.txt;filename=desired-filename.txt" --form param1=value1 --form param2=value2 https://example.com/resource.cgi
  6.  
  7. curl --data '' https://example.com/resource.cgi
  8.  
  9. curl -X POST https://example.com/resource.cgi
  10.  
  11. curl --request POST https://example.com/resource.cgi
  12.  
  13. curl --tr-encoding -X POST -v -# -o output -T filename.dat
  14. http://example.com/resource.cgi
  15.  
  16. echo '{"text": "Hello **world**!"}' | curl -d @- https://api.github.com/markdown
  17.  
  18. <p>Hello <strong>world</strong>!</p>
  19.  
  20. curl -d "name=Rafael%20Sagula&phone=3320780" http://www.where.com/guest.cgi
  21.  
  22. curl -d "name=Rafael%20Sagula%26phone=3320780" http://www.where.com/guest.cgi
  23.  
  24. curl -d "username=admin&password=admin&submit=Login" --dump-header headers http://localhost/Login
  25. curl -L -b headers http://localhost/
  26.  
  27. curl -v --data-ascii var=value http://example.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement