devesh | 1 Oct 2007 07:50
Picon

Re: curl-and-php Digest, Vol 25, Issue 20 (dependencies:...)

hi buddy,

you can use

yum install curl

else if you resolve one dependency second will come.and so on...
yum automatically resolve all these for you.

another thing just download tarball containing all the packages regarding curl or as per requirement and install them.Good Luck.( in case you cudnt then mail me offline with kernel version .,,,i'll send you those packages.)

cheers,
Devesh

Message: 1
Date: Sat, 29 Sep 2007 11:37:43 +0100 (BST)
From: chingkhuba chingakham < ccubed2k4 <at> yahoo.com>
Subject: Dependencies- Where to find them.
To: curl-and-php <at> cool.haxx.se
Message-ID: < 591007.70800.qm <at> web8914.mail

.in.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello

  I am installing curl in redhat linux 7.1.
Then I downloaded the Redhat i386 7.15.1 and install it.
But I met the following error.

# rpm -ivh TWWcurl715-7.15.1-2.i386.rpm
Failed dependencies:
        TWWlibgnutls12 >= 1.2.9 is needed by TWWcurl715-7.15.1-2
        TWWlibidn05 >= 0.5.20 is needed by TWWcurl715-7.15.1-2
        TWWzlib11 >=  1.1.4 is needed by TWWcurl715-7.15.1-2

Can here anybody help me please.

Thanks a lots.

ccubed



with warm regards

  chingkhuba
  [ccubed]


_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Michael Wallner | 1 Oct 2007 13:04
Picon
Gravatar

Re: curl_easy_init + curl_easy_setopt + timeout in milliseconds 'CURLOPT_TIMEOUT_MS'

Suleman Butt wrote:

> Now could anybody please tell me how can i use 'curl_easy_setopt()'
> function with "CURLOPT_TIMEOUT_MS" option?

There are no *easy* functions available in PHP, IIRC it's called
curl_setopt() like you already use it few lines below.

--

-- 
Michael

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Suleman Butt | 1 Oct 2007 14:30
Picon

Re: curl_easy_init + curl_easy_setopt + timeout in milliseconds 'CURLOPT_TIMEOUT_MS'

Thanks Michael,
                        Is there any way then to set the timeout in milliseconds, because currently curl_setopt() method only takes second as parameter value.
 
thanks.

 
On 10/1/07, Michael Wallner <mike <at> iworks.at> wrote:
Suleman Butt wrote:

> Now could anybody please tell me how can i use 'curl_easy_setopt()'
> function with "CURLOPT_TIMEOUT_MS" option?

There are no *easy* functions available in PHP, IIRC it's called
curl_setopt() like you already use it few lines below.

--
Michael

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php



--
Regards Suleman
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Michael Wallner | 1 Oct 2007 15:09
Picon
Gravatar

Re: curl_easy_init + curl_easy_setopt + timeout in milliseconds 'CURLOPT_TIMEOUT_MS'

Suleman Butt wrote:
> Thanks Michael,
>                         Is there any way then to set the timeout in
> milliseconds, because currently curl_setopt() method only takes second
> as parameter value.

It should be available since PHP 5.2.3

--

-- 
Michael

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

Suleman Butt | 1 Oct 2007 15:16
Picon

Re: curl_easy_init + curl_easy_setopt + timeout in milliseconds 'CURLOPT_TIMEOUT_MS'

I'm using PHP 5.2.4 with curl-7.17.0 patch.
 
So could you please write me the method name with millisecond as timeout parameter.
 
thanks. 

 
On 10/1/07, Michael Wallner <mike <at> iworks.at> wrote:
Suleman Butt wrote:
> Thanks Michael,
>                         Is there any way then to set the timeout in
> milliseconds, because currently curl_setopt() method only takes second
> as parameter value.

It should be available since PHP 5.2.3

--
Michael

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php



--
Regards Suleman
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Suleman Butt | 1 Oct 2007 15:51
Picon

cURL timeout in Milliseconds?

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
Daniel Stenberg | 1 Oct 2007 16:54
Picon
Favicon
Gravatar

Re: cURL timeout in Milliseconds?

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

Suleman Butt | 1 Oct 2007 17:08
Picon

Re: cURL timeout in Milliseconds?

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
Suleman Butt | 1 Oct 2007 18:13
Picon

Re: cURL timeout in Milliseconds?

Hi Daniel,
             I found this reference from you, but still this does not solve my problem as CURLOPT_TIMEOUT_MS is only available with curl_easy_setopt() and not with curl_setopt() alone?
 
So does that mean in PHP5 still it is not possible to support timeout in milliseonds?
 
thanks.
 
 
From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-09-12
 

On Wed, 11 Sep 2002, wrote:

> I am unclear if PHP's cURL supports the curl_easy functions:
> curl_easy_init(), curl_easy_setopt, curl_easy_perform(), and
> curl_easy_cleanup().

The PHP/CURL module supports those functions, yes, but it uses slightly
different names: http://www.php.net/manual/en/ref.curl.php

Check out some examples:
http://curl.haxx.se/libcurl/php/examples/



On 10/1/07, Suleman Butt <suleman.butt <at> gmail.com> wrote:
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
Daniel Stenberg | 1 Oct 2007 19:13
Picon
Favicon
Gravatar

Re: cURL timeout in Milliseconds?

On Mon, 1 Oct 2007, Suleman Butt wrote:

>                     But I guess CURLOPT_TIMEOUT_MS is not supported in php5 
> with curl_easy_setopt() method? So how can i proceed further?

Mike already explained that it is supported, and Mike is a much better source 
for that info than I am.

But as said before, the function is not called curl_easy_setopt() in PHP but 
curl_setopt().

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php


Gmane