Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
it:oss:curl [2011-07-29 14:56] – created strolsit:oss:curl [2011-07-29 15:30] (current) – Überschrift korrigiert strols
Line 1: Line 1:
 ====== curl ====== ====== curl ======
  
-===== Mit REST-API sprechen =====+===== per POST XML an eine REST-API geben =====
  
 <code> <code>
-echo '<doc><item>Some content.</item></doc>' | curl -vv --request POST --header 'Content-type: text/xml' --data @- http://example.com/restapi+echo '<doc><item>Some content.</item></doc>'
 + curl -vv --request POST --header 'Content-type: text/xml' --data @- http://example.com/restapi
 </code> </code>
  
 ([[http://snippets.dzone.com/posts/show/181|Quelle]]) ([[http://snippets.dzone.com/posts/show/181|Quelle]])
  
it/oss/curl.1311944211.txt · Last modified: 2011-07-29 14:56 by strols
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0