Skip to content

Instantly share code, notes, and snippets.

@michaelklapper
Created April 5, 2013 10:06
Show Gist options
  • Save michaelklapper/5318154 to your computer and use it in GitHub Desktop.
Save michaelklapper/5318154 to your computer and use it in GitHub Desktop.
Simulate REST-API call via curl
curl -i -X POST -H 'Content-Type: application/json' -d '{"product": "123,124", "docId": "1", "description": "test description", "file": {"data": "VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==", "filename": "filename.txt"}, "contentType": "TD_BA", "lifecycleProduct": "asdasf", "name": "test", "language": "0", "title": "test title", "author": "author name", "modified": "1364375700", "externalProduct": "1"}' www.domain.de/index.php?id=1634
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment