mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:13:33 +03:00
Wesley Laxton's CURLOPT_PREQUOTE work
This commit is contained in:
parent
ea8476a2dc
commit
80b004a57d
5 changed files with 35 additions and 6 deletions
10
lib/url.c
10
lib/url.c
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue