Skip to content

Instantly share code, notes, and snippets.

@jpowers
Created March 9, 2011 19:28
Show Gist options
  • Select an option

  • Save jpowers/862798 to your computer and use it in GitHub Desktop.

Select an option

Save jpowers/862798 to your computer and use it in GitHub Desktop.
curl POST
curl -i -u foo@email.com:123456 -X POST -H 'Content-Type: application/xml' -d '<user><email>foo@example.com</email><postal-code>12345</postal-code></user>' http://0.0.0.0:3000/users.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment