curl-and-php
Re: active FTP file transfer
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 2 Feb 2004 10:46:51 +0100 (CET)
Date: Mon, 2 Feb 2004 10:46:51 +0100 (CET)
On Wed, 28 Jan 2004, James OBrian wrote:
> I'm terrible trying to make a ftp upload with curl in ACTIVE mode.
>
> But I have not found a way to do this.
>
> curl_setopt ($ch, CURLOPT_QUOTE, array('passive'));
1. If you are trying 'ACTIVE' mode, why are you sending 'passive' to the
server?
2. 'passive' isn't a FTP command so it isn't that strange the server doesn't
understand it.
> might anybody help ?
Try CURLOPT_FTPPORT to make curl use 'active' ftp.
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]] ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdnReceived on 2004-02-02