mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
use the proper type for formposts, not the deprecated one
This commit is contained in:
parent
252423a725
commit
e5cd0cc402
@ -59,7 +59,7 @@ int Curl_FormInit(struct Form *form, struct FormData *formdata );
|
|||||||
|
|
||||||
CURLcode
|
CURLcode
|
||||||
Curl_getFormData(struct FormData **,
|
Curl_getFormData(struct FormData **,
|
||||||
struct HttpPost *post,
|
struct curl_httppost *post,
|
||||||
int *size);
|
int *size);
|
||||||
|
|
||||||
/* fread() emulation */
|
/* fread() emulation */
|
||||||
|
@ -682,7 +682,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||||||
/*
|
/*
|
||||||
* Set to make us do HTTP POST
|
* Set to make us do HTTP POST
|
||||||
*/
|
*/
|
||||||
data->set.httppost = va_arg(param, struct HttpPost *);
|
data->set.httppost = va_arg(param, struct curl_httppost *);
|
||||||
if(data->set.httppost)
|
if(data->set.httppost)
|
||||||
data->set.httpreq = HTTPREQ_POST_FORM;
|
data->set.httpreq = HTTPREQ_POST_FORM;
|
||||||
break;
|
break;
|
||||||
|
@ -791,7 +791,7 @@ struct UserDefined {
|
|||||||
off_t set_resume_from; /* continue [ftp] transfer from here */
|
off_t set_resume_from; /* continue [ftp] transfer from here */
|
||||||
char *cookie; /* HTTP cookie string to send */
|
char *cookie; /* HTTP cookie string to send */
|
||||||
struct curl_slist *headers; /* linked list of extra headers */
|
struct curl_slist *headers; /* linked list of extra headers */
|
||||||
struct HttpPost *httppost; /* linked list of POST data */
|
struct curl_httppost *httppost; /* linked list of POST data */
|
||||||
char *cert; /* certificate */
|
char *cert; /* certificate */
|
||||||
char *cert_type; /* format for certificate (default: PEM) */
|
char *cert_type; /* format for certificate (default: PEM) */
|
||||||
char *key; /* private key */
|
char *key; /* private key */
|
||||||
|
Loading…
Reference in New Issue
Block a user