curl-library
Re: Problems with curl tool
Date: Wed, 12 Mar 2003 10:02:49 -0500
I have written a program accessing a site over SSL where I need to accept
certs ("global certs") from the connection in the same maner. In order to
do this I have to set a few things in libcurl which I will list bellow.
/* Use this for Debugging
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
*/
curl_easy_setopt(curl, CURLOPT_HEADER, 1);
/* Change this to local proxy setting is needed.
curl_easy_setopt(curl, CURLOPT_PROXY, "yourproxyhere:8080");
*/
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_REFERER, "referer_page_here");
I have to make sure I accept cookies and read the headers of each page to
progress past authentication.
Hope this helps
Rick
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
Received on 2003-03-12