diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-02-28 23:31:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-02-28 23:31:23 +0000 |
commit | 80b004a57d6fe8ce2d2fceb29b6eb4a7101da958 (patch) | |
tree | cb8bf3a28106c1a23c9d689a300759a8cee92401 /lib/url.c | |
parent | ea8476a2dcf730c16142794975e5eed15cab5db5 (diff) |
Wesley Laxton's CURLOPT_PREQUOTE work
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -735,6 +735,12 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) */ data->set.postquote = va_arg(param, struct curl_slist *); break; + case CURLOPT_PREQUOTE: + /* + * List of RAW FTP commands to use prior to RETR (Wesley Laxton) + */ + data->set.prequote = va_arg(param, struct curl_slist *); + break; case CURLOPT_QUOTE: /* * List of RAW FTP commands to use before a transfer @@ -1983,8 +1989,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, conn = conn_temp; /* use this connection from now on */ /* we need these pointers if we speak over a proxy */ - conn->hostname = old_conn->gname; - conn->name = old_conn->name; + conn->hostname = conn->gname; + conn->name = &conn->gname[old_conn->name - old_conn->gname]; free(conn->path); /* free the previously allocated path pointer */ |