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

curl-and-php

Re: curl upload error (23): command line OK -- exec from PHP fails ... !

From: Harry Fearnley <Harry.Fearnley_at_eng.ox.ac.uk>
Date: Wed, 01 Sep 2004 17:56:52 +0100

Daniel

>> Thanks for this. However, whenever I run my commands with
>> "--trace-ascii" or " --trace" I get an error message "curl: (60) SSL
>> certificate problem, verify that CA Cert is OK"
>>
>> (I think that) I need to run the command with the "--insecure", but
>> when I do this with the traces, above, I get the above error message
>> anyway! ...
>
> ... which probably happens because you didn't pass a file name as well
> so --insecure was used as file name for the trace option.

Daniel -- Embarrassing, but true! :-(

I have done some more tests, and it seems that a small
(7 kb) PDF file uploads OK, but that a 4+ Mb one does
not (in trace-ascii output "Info : Failed writing body")
-- just writes a broken 7803 byte file (header of the PDF
file)

I will look carefully at the trace-ascii output to see if
I can spot why.
... not obvious why it works from command line, but not when
the identical command line is executed via the PHP script.

Harry

+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+-
http://www.eng.ox.ac.uk/people/Harry.Fearnley
Dept Engineering Science, Parks Rd, Oxford, OX1 3PJ, UK
Tel: +44 (0)1865 273928 -- Fax: +44 (0)1865 273010
Received on 2004-09-01