Child pages
  • Useful curl Commands
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Setting a Header

curl -H 'Content-type: application/xml'
curl -H 'Content-type: application/x-javascript'

POST params

curl -d "hi=there&my=friend" <url>

Follow Redirects

curl -L --insecure

Also, the --insecure means to trust the SSL cert, as, in this case, it is self-signed.

POST with Headers and Data from file

curl -X POST --data @dsml-request.xml -H "Content-Type: text/xml" -H "Authorization: Basic <base64-encoded bind dn and password>"
  • No labels