migrated from stackoverflow.com Jun 6 '10 at 7:46
or
For more information see the cURL manual. You might also find the cURL tutorial on emulating a web browser helpful. With libcurl, you'd use the |
|||||||
|
|
For a RESTful HTTP POST containing XML:
or for JSON, use this:
This will read the contents of file named |
|||||||||||||||||||||
|
is the example found in the Curl Example Manual. Use %26 for the ampersands though if the above doesn't work:
|
||||
|
|
|
If you want to login to a site, do the following:
The first request saves the session cookie (that is provided upon successful login) in the "headers" file. From now on you can use that cookie to authenticate you to any part of the website that you usually access after logging in with a browser. |
|||
|
|
and there are many more options, check |
||||
|
|
protected by studiohack♦ May 11 '11 at 16:02
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.