[maemo-users] Fwd: Problem accessing http sites using libcurl on maemo platform

From: TietoEnator LinuxTeam linuxteam.te at gmail.com
Date: Fri May 23 08:34:46 EEST 2008
Hi all,

i am unable to connect and get the html page of my blog account in
blogger.com website
Authentication problem with user name and password.
I hope some body can help me on this issue
here i am giving you the code snippet i used.



curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE);


 curl_easy_setopt(curl_handle, CURLOPT_PROXY, "<my proxy settings>");


  curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 20);



  curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH,  CURLAUTH_ANY);

  curl_easy_setopt(curl_handle, CURLOPT_URL, "http://blogger.com");

 curl_easy_setopt (curl_handle, CURLOPT_FOLLOWLOCATION, 1);
 curl_easy_setopt (curl_handle, CURLOPT_UNRESTRICTED_AUTH, 1);
 curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 10);
 curl_easy_setopt (curl_handle, CURLOPT_MAXCONNECTS, 20);
 curl_easy_setopt (curl_handle, CURLOPT_AUTOREFERER, 1);
 curl_easy_setopt (curl_handle, CURLOPT_COOKIEFILE, cookie);
 curl_easy_setopt(curl_handle, CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_NONE);
 curl_easy_setopt(curl_handle, CURLOPT_HTTPGET,1);
 curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER,NULL);
 curl_easy_setopt(curl_handle, CURLOPT_USERPWD, "username:password");

  curl_easy_setopt(curl_handle, CURLOPT_FILE, my_file);

authentication is failing all the time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-users/attachments/20080523/a5ae974f/attachment.htm 
More information about the maemo-users mailing list