cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

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