Skip to content

Instantly share code, notes, and snippets.

@jbgo
Created May 24, 2012 14:58
Show Gist options
  • Save jbgo/2782064 to your computer and use it in GitHub Desktop.
Save jbgo/2782064 to your computer and use it in GitHub Desktop.
XML API requests with curl
# You can pipe the response to xmllint to format it so you can read it
curl -X POST -d @postdata.xml http://some_url.xml | xmllint --format -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment