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

Setting a Header

curl -H 'Content-type: application/xml' http://infosvcptr.library.ucsf.edu/shuttle/list/locations
curl -H 'Content-type: application/x-javascript' http://infosvcptr.library.ucsf.edu/shuttle/list/locations

POST params

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

Follow Redirects

curl -L --insecure https://lr-cle.library.ucsf.edu/ucsf-guests/security/shibboleth

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>" https://eds-test.ucsf.edu/dsml/DSMLServlet
  • No labels