Setting a Header
curl -H 'Content-type: application/xml' http://infosvcptr.library.ucsf.edu/shuttle/list/locations
curl -d "hi=there&my=friend" <url>
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