cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: FTp site through Firewall

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 16 Aug 2005 11:14:50 +0200 (CEST)

On Tue, 16 Aug 2005, Navid Srinivas wrote:

> I am able to connect through socksproxy in WS_FTP PRO tool

Aha, a socksproxy!

> I have tried using --socks option in curl

That should be the option to use, yes.

> curl -4 --socks $socksproxy -k ftps://siteusername:sitepassword_at_URL/DIR also
> i have tried setting ftp_proxy and ftps_proxy still no avail (-x option also
> returns ftps does not work through http proxy!)
>
> it gives me error saying
> "ftps does not work through http proxy!"

Yes, since -x sets a HTTP proxy. --socks sets a SOCKS proxy.

> is there any other option for passing socksproxy

No. SOCKS is such a rarely used option there are lots of bugs and not
supported quirks around it. If you truly want curl to do FTPS over SOCKS, then
I supect you need to dig into some source code and make sure the SOCKS magic
is done properly for it.

If not, then I don't think you should hold your breath for this flaw to get
fixed within the nearest future.

Does curl even do normal FTP fine over SOCKS?

(I'll add something about this problem to the KNOWN_BUGS document.)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-08-16