|
feedback
|
migrated from stackoverflow.com Jun 6 '10 at 7:46
This question came from our site for professional and enthusiast programmers.
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 | |||||
feedback
|
|
For a RESTful HTTP POST containing XML or JSON, use this:
This will read the contents of file named "filename" and send it as the post request. | |||||||||||||
feedback
|
|
curl -d "name=Rafael%20Sagula&phone=3320780" http://www.where.com/guest.cgi is the example found in the Curl Example Manual that can be found here : http://www.cs.sunysb.edu/documentation/curl/index.html | |||
|
feedback
|
and there are many more options, check | ||||
|
feedback
|
|
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. | |||
|
feedback
|
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.
