<br><br><div class="gmail_quote">Hi all,<br><br>i am unable to connect and get the html page of my blog account in <a href="http://blogger.com" target="_blank">blogger.com</a> website<br>Authentication problem with user name and password.<br>
I hope some body can help me on this issue<br>
here i am giving you the code snippet i used.<br><br><br><br>curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE);<br> <br><br> curl_easy_setopt(curl_handle, CURLOPT_PROXY, "<my proxy settings>");<br>
<br> <br> curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 20);<br> <br> <br><br> curl_easy_setopt(curl_handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY);<br><br> curl_easy_setopt(curl_handle, CURLOPT_URL, "<a href="http://blogger.com" target="_blank">http://blogger.com</a>");<br>
<br> curl_easy_setopt (curl_handle, CURLOPT_FOLLOWLOCATION, 1);<br> curl_easy_setopt (curl_handle, CURLOPT_UNRESTRICTED_AUTH, 1);<br> curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 10);<br> curl_easy_setopt (curl_handle, CURLOPT_MAXCONNECTS, 20);<br>
curl_easy_setopt (curl_handle, CURLOPT_AUTOREFERER, 1);<br> curl_easy_setopt (curl_handle, CURLOPT_COOKIEFILE, cookie);<br> curl_easy_setopt(curl_handle, CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_NONE);<br> curl_easy_setopt(curl_handle, CURLOPT_HTTPGET,1);<br>
curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER,NULL);<br> curl_easy_setopt(curl_handle, CURLOPT_USERPWD, "username:password");<br> <br> curl_easy_setopt(curl_handle, CURLOPT_FILE, my_file);<br><br>authentication is failing all the time.<br>
<br><br><br><br>
</div><br>