2012-12-11 16:11:45 +01:00
|
|
|
#curl -H "Accept: application/xml" -H "content-type: text/xml" -H "Authorization: vlf4o42bYSVVWLm28jLB85my4HBZWXTri8vGdySb" \
|
|
|
|
#--data "@input/event.xml" -X PUT http://localhost/events/14'
|
2012-09-03 13:53:44 +02:00
|
|
|
|
|
|
|
# POST can be used as well..
|
2012-12-11 16:11:45 +01:00
|
|
|
curl -i -H "Accept: application/xml" -H "content-type: text/xml" -H "Authorization: vlf4o42bYSVVWLm28jLB85my4HBZWXTri8vGdySb" \
|
2013-01-22 15:12:51 +01:00
|
|
|
--data "@input/event.xml" -X POST http://localhost/events/$1
|
2013-11-14 12:43:31 +01:00
|
|
|
|
|
|
|
#curl -i -H "Accept: application/json" -H "content-type: text/json" -H "Authorization: vlf4o42bYSVVWLm28jLB85my4HBZWXTri8vGdySb" \
|
|
|
|
#--data "@input/event.json" -X POST http://localhost/events/$1
|