cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1675510 ] Nonanonymous FTP upload through proxy fails

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 14 Mar 2007 16:19:33 -0700

Bugs item #1675510, was opened at 2007-03-07 08:53
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1675510&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: ftp
Group: bad behaviour
>Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: idea_spirit (idea_spirit)
Assigned to: Daniel Stenberg (bagder)
Summary: Nonanonymous FTP upload through proxy fails

Initial Comment:
Please, could you help me to solve the problem?

I use curl_716_1 for Win32 in Windows XP to upload file through proxy.
(curl 7.16.1 (i386-pc-win32) libcurl/7.16.1 zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file
Features: Largefile libz
)

I use these commands to do it:
set ftp_proxy="http://my_proxy:port"
curl -T myfile.txt -u anonymous:myemail@a.eu ftp://europe.future.eu/directory/

and it works fine.

But if there is nonanonymous access required on FTP side,
I use the same commands with the proper user and pass:

set ftp_proxy="http://my_proxy:port"
curl -T myfile.txt -u user:password ftp://europe.future.eu/directory/

I get the message from the target FTP server:
<blockquote><strong><pre>Permission denied; you may only upload to an &quot;incoming&quot; directory.</pre></strong></blockquote>

Using the same configuration in program Total Commander,the upload is successfull. Obviously there is no problem in proxy.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2007-03-09 22:26

Message:
Logged In: YES
user_id=1110
Originator: NO

I got a private mail from 'idea_spirit' that said the work-around Dan F
mentioned worked.

If you (idea_spirit) won't provide further details on the problem, we'll
just assume that this is due to problems with your particular proxy. That
fine with you?

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2007-03-09 01:28

Message:
Logged In: YES
user_id=236775
Originator: NO

Are you sure your proxy allows specifying ftp user names in this way?
Squid, for one, doesn't. You need to use the URL
ftp://anonymous:myemail%40a.eu@europe.future.eu/directory/ instead of the
-u option.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2007-03-08 23:05

Message:
Logged In: YES
user_id=1110
Originator: NO

Can you show us a trace log from the "Total Commander" tool's upload and a
--trace-ascii dump from curl so that we can compare?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1675510&group_id=976
Received on 2007-03-15

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET