cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-php mailing list Archives

cURL timeout in Milliseconds?

From: Suleman Butt <suleman.butt_at_gmail.com>
Date: Mon, 1 Oct 2007 15:51:27 +0200

Hi All,
         Is there any way to set timeout value in millisecond in curl. e.g.

curl_setopt($ch2, CURLOPT_URL, http://www.php.net/);

curl_setopt($ch2, CURLOPT_TIMEOUT, 1); // 1 seconds

But i want curl_setopt($ch2, CURLOPT_TIMEOUT, 500/1000); // 0.5 seconds or
500 millisecond.

by doing the above, the application just hangs, so is there any other
solution to solve this problem,i.e. seetign tiemout in milliseconds?

anyway help would be appreciated.

thanks

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-10-01

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET