cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP transfers through a proxy

From: Mongi Abdelmoula <mongi_abdelmoula_at_yahoo.fr>
Date: Mon, 6 Dec 2004 17:59:51 +0100 (CET)

I'm using following code lines :
 

easy.SetOpt(CURLoption.CURLOPT_URL, args(1))

easy.SetOpt(CURLoption.CURLOPT_PUT, True)

easy.SetOpt(CURLoption.CURLOPT_PROXY, args(2))

easy.SetOpt(CURLoption.CURLOPT_USERPWD, args(3) + ":" + args(4))

easy.SetOpt(CURLoption.CURLOPT_UPLOAD, True)

easy.SetOpt(CURLoption.CURLOPT_INFILESIZE, fs.Length)

 

When etherealing, I see following TCP stream :
 
PUT ftp://servername/ HTTP/1.1
Authorization: Basic ((encoded username & password)
Host: servername:21
Pragma: no-cache
Accept: */*
Content-Length: 15872
Expect: 100-continue
 
HTTP/1.0 500 Server Response Error
Content-Type: text/html
 
<HTML><HEAD>
<TITLE> FTP error 500 </TITLE>
</HEAD><BODY>
<p><font size="4">The following return code was received from the FTP server</font></p><p><font size="4">&nbsp;</font><b><font size="4">500: Syntax error, command unrecognized. This may include errors such as command line too long. </font></b></p> </BODY></HTML>
 

                
---------------------------------
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail

  Avec Yahoo! faites un don et soutenez le Téléthon !
Received on 2004-12-06