cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: support of proxy for FTP protocol

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 2 Sep 2010 22:28:17 +0200 (CEST)

On Thu, 2 Sep 2010, Alona Rossen wrote:

Please don't top-post.

> My question was related to libcurl rather than curl utility.

That makes no difference, my response covered both equally good.

> As I understand we need to use proxy tunneling if specify HTTP proxy with
> curl_easy_setopt()to keep FTP specific functionality active.

You mentioned only "FTP proxying" before. Now you're being more detailed and
you say HTTP proxy which you didn't before and that certainly a completely
different beast. Then you can safely ignore my first response!

> Are there ways to support FTP proxy other than to specify CURLOPT_PROXY and
> CURLOPT_HTTPTUNNEL?

If you want to use the FTP protocol through a HTTP proxy, then CURLOPT_PROXY
with CURLOPT_HTTPTUNNEL is the only way. But note that most HTTP proxies are
setup to refuse CONNECT (CURLOPT_HTTPTUNNEL) to port 21 (the default FTP port)
and that you can only do passive FTP through such a proxy. Passive is default
by libcurl.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-02