aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-09 07:39:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-09 07:39:29 +0000
commit94a157d0b0502a6cb64b5f0551ba440ddd45c56e (patch)
tree4a9e46af764d54b23fe164f076642c29912eab5a /lib/url.c
parentca04620253b162fedc672695274817d6b3cb3610 (diff)
support for CURLOPT_FTP_USE_EPRT added
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index e01711413..0cb690c0c 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -284,6 +284,7 @@ CURLcode Curl_open(struct SessionHandle **curl)
data->set.httpreq = HTTPREQ_GET; /* Default HTTP request */
data->set.ftp_use_epsv = TRUE; /* FTP defaults to EPSV operations */
+ data->set.ftp_use_eprt = TRUE; /* FTP defaults to EPRT operations */
data->set.dns_cache_timeout = 60; /* Timeout every 60 seconds by default */
@@ -634,10 +635,14 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
data->set.ftp_use_port = data->set.ftpport?1:0;
break;
+ case CURLOPT_FTP_USE_EPRT:
+ data->set.ftp_use_eprt = va_arg(param, long)?TRUE:FALSE;
+ break;
+
case CURLOPT_FTP_USE_EPSV:
data->set.ftp_use_epsv = va_arg(param, long)?TRUE:FALSE;
break;
-
+
case CURLOPT_HTTPHEADER:
/*
* Set a list with HTTP headers to use (or replace internals with)