Linux: Test REST web service using curl

Curl is a linux command-line HTTP tool.

Note
Replace $URL in examples below, e.g. http://somehost:2222/path/to/endpoint

Test REST GET:

Test REST GET with OAuth token in header:

Test REST POST:

Note
content-type here is XML but could be anything.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">