On Tue, Feb 22, 2011 at 02:40:23PM +0530, chirayu joshi wrote: > if i am using curl_easy_setopt() to set these settings > CURLOPT_USERPWD,CURLOPT_POSTFIELDS,CURLOPT_CONNECTTIMEOUT,CURLOPT_TIMEOUT > > curl_easy_perform() returns an error code relating to the success of > > the transfer. That code will indicate whether or not a timeout was hit. > > > >>>> Dan > > how curl_easy_perform() will distinguish between error that it was > hit by CURLOPT_TIMEOUT or CURLOPT_POSTFIELDS or > CURLOPT_USERPWD...............
This is all well documented in the libcurl documentation. Start by reading http://curl.haxx.se/libcurl/c/libcurl-tutorial.html then move on to http://curl.haxx.se/libcurl/c/libcurl-errors.html, http://curl.haxx.se/libcurl/c/curl_easy_setopt.html and http://curl.haxx.se/libcurl/c/curl_easy_perform.html for the specifics. >>> Dan ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
