For anyone who is interested, I found this: > libcurl has no default timeouts for these. When you > don't use them, you will > be in the hands of your operating system's timeouts. at http://curl.haxx.se/mail/lib-2004-04/0027.html Regards, Bruce >>> "Bruce Cowin" <bdc@xxxxxxxxxxxxxxx> 2/03/2007 1:59 p.m. >>> Thanks Richard. I'll look into that. And yes, I'm looking at capturing the curl_getinfo() as well. Thanks again. Regards, Bruce >>> "Richard Lynch" <ceo@xxxxxxxxx> 2/03/2007 1:36 p.m. >>> On Thu, March 1, 2007 5:16 pm, Bruce Cowin wrote: > I'm using PHP 5.1.2 on IIS. From time to time, my cURL response is > empty (i.e., strlen($response) == 0). I'm wondering if it is a > timeout issue. If cURL timed out, would you expect an empty response? > > Also, I want to change curlopt_timeout to see if this helps. But what > I can't find is what the default for this setting is. Does anyone > know? If nothing else is stated anywhere, it's probable that the default timeout is the same as the one for any socket connection in php.ini... But also check the docs over at the curl site. hexx.se or somesuch. There's a curl_error() function of some sort that you should be using, if you are not already, and I would expect it to have something useful in it in the scenario you are describing. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php