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

curl-and-php

FTPS via CURL/PHP

From: G F <ev1_at_techanchor.com>
Date: Thu, 10 Sep 2009 12:14:59 -0700

Having a real serious problem with this, and hoping someone can help
out. I've been reading through stuff on curl.haxx.se since Monday.

Trying to download from / upload to an FTPS server using CURL/PHP
(CURL v. 7.10.6). Using verbose: with
'ftps://user:pass_at_ftp.example.com:990/test.txt' I receive a '230 User
logged in', and PWD yields '257 "/users/user" is current directory'.
PASV puts us into the correct transfer mode, and the correct file size
is reported for test.txt. But the transfer fails. The transcript at
that point reads:

> RETR test.txt
< 125 Downloading in ASCII file test.txt (9)
* Getting file with size: 9
* Received only partial file: 0 bytes
* Connection #0 left intact
* Closing connection #0

Searching for 'Received only partial file' yields very few helpful
results. (Most of them seem to have to do with the C source code).
Can anybody at all tell me what could be happening? What's causing
the 'Received only partial file'? Does this mean that 0 bytes were
sent by the server in response to the RETR, or does it mean CURL/PHP
didn't know what to do with them (despite CURLOPT_FILE being set to a
writable file)? If the server sent 0 bytes, what could be causing
that?

I'm using CURLOPT_SSL_VERIFYHOST, CURLOPT_SSL_VERIFYPEER, and a PEM
certificate that CURL/PHP seems to find without any trouble. The fact
that it establishes a connection leads me to believe that SSL options
aren't the issue, but I've gotten versions of this to work fine with
plain FTP servers.

Is there anyone who's gotten this to work successfully and can pass
along some pointers, please?

Many thanks,
Greg
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-09-10