TLDRBins TLDRBins / curl


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

# Show header only curl -I <TARGET>
Sample Output: TO-DO
# Save as the same name as the file on the server curl <TARGET>/<FILE> -O
Sample Output: TO-DO
# GET url-encoded query curl -G --data-urlencode '<QUERY_STRING>' <TARGET>
Sample Output: TO-DO
# POST url-encoded data curl --data-urlencode '<DATA>' <TARGET>
Sample Output: TO-DO
# PUT a file curl -X PUT <TARGET>/<FILE> -d @<FILE>
Sample Output: TO-DO
# PUT a file (Authenticate) curl -X PUT -u '<USER>:<PASSWORD>' <TARGET>/<FILE> -d @<FILE>
Sample Output: TO-DO
# PUT a file as raw binary (Preserve newlines and control characters) curl -X PUT <TARGET>/<FILE> --data-binary @<FILE>
Sample Output: TO-DO
# POST a file with form param curl -X POST -F '<PARAM>=@<FILE>;type=<APPLICATION_TYPE>;filename=<FILE>' <TARGET>
Sample Output: TO-DO
# POST a file in raw-text format (Not as attachment) curl -X POST -F '<PARAM>=<<FILE>' <TARGET>
Sample Output: TO-DO
# Not to handle sequences of '/../' or '/./' curl --path-as-is --ignore-content-length '<TARGET>/../../../..<FILE_PATH>'
Sample Output: TO-DO