curl-and-php
Re: cURL timeout in Milliseconds?
Date: Mon, 1 Oct 2007 17:08:11 +0200
Thanks Danial,
But I guess CURLOPT_TIMEOUT_MS is not supported in php5
with curl_easy_setopt() method? So how can i proceed further?
thanks.
On 10/1/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Mon, 1 Oct 2007, Suleman Butt wrote:
>
> > 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?
>
> I figure that's an integer operation and then 500/1000 = 0.
>
> The only solution to your problem is the CURLOPT_TIMEOUT_MS option.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-10-01