curl-and-php
Re: exit status
Date: Tue, 10 Sep 2002 18:46:29 +1000
using exec instead of libcurl means that none of the php-curl commands will
work.
eg curl_errno will not return anything as there is no valid curl resource
to test to see if the command is working correctly try running the
statement from the command line exactly as it is used within the exec
command and see if the same error occurs. as this is what php is doing anyway.
I have also found that executing curl with two -L statements in the command
line stops it from working.
[as per your email
> ($option is used as either a blank ' ' or another -L)
]
D.
At 09:35 AM 10/09/2002 +0200, mixo wrote:
>The php function I was looking for is 'curl_errno'.
>(It is not documented in the php 4.1.2 docs, I found it on the php site,
>http://www.php.net/manual/en/function.curl-errno.php)
>
>I don't know how this will help (as I wanted a php function), but:
>Redhat 7.3 (kernerl 2.4.18-10)
>curl 7.9.5 (i386-redhat-linux-gnu) libcurl 7.9.5 (OpenSSL 0.9.6b) (ipv6
>enabled)
>timeout : 180 seconds
>php-4.1.2 (from redhat with 'curl' enabled)
>
>And, its just text that I am posting.
>
>
>Daniel Stenberg wrote:
>
>>You're leaving out a lot of details for me to guess:
>>
>>o curl version?
>>o OS?
>>o what's the timeout?
>>o any particular data you post?
>>
>>I just ran this:
>>
>>$ curl -m 28 -d "test" https://[my-test-url] -L
>>
>>Worked perfectly well on my Linux. I tried 7.9.9-pre1 and 7.10-pre2.
>>
>>
>
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone? Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-10