mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
curl_setopt() should be curl_easy_setopt()
This commit is contained in:
parent
1e14f8d4c7
commit
b6241b3c89
@ -205,15 +205,15 @@ CODE:
|
|||||||
if (option < CURLOPTTYPE_OBJECTPOINT) {
|
if (option < CURLOPTTYPE_OBJECTPOINT) {
|
||||||
/* This is an option specifying an integer value: */
|
/* This is an option specifying an integer value: */
|
||||||
long value = (long)SvIV(ST(2));
|
long value = (long)SvIV(ST(2));
|
||||||
RETVAL = curl_setopt(curl, option, value);
|
RETVAL = curl_easy_setopt(curl, option, value);
|
||||||
} else if (option == CURLOPT_FILE || option == CURLOPT_INFILE ||
|
} else if (option == CURLOPT_FILE || option == CURLOPT_INFILE ||
|
||||||
option == CURLOPT_WRITEHEADER) {
|
option == CURLOPT_WRITEHEADER) {
|
||||||
/* This is an option specifying a FILE * value: */
|
/* This is an option specifying a FILE * value: */
|
||||||
FILE * value = IoIFP(sv_2io(ST(2)));
|
FILE * value = IoIFP(sv_2io(ST(2)));
|
||||||
RETVAL = curl_setopt(curl, option, value);
|
RETVAL = curl_easy_setopt(curl, option, value);
|
||||||
} else if (option == CURLOPT_ERRORBUFFER) {
|
} else if (option == CURLOPT_ERRORBUFFER) {
|
||||||
SV *sv;
|
SV *sv;
|
||||||
RETVAL = curl_setopt(curl, option, errbuf);
|
RETVAL = curl_easy_setopt(curl, option, errbuf);
|
||||||
if (errbufvarname) free(errbufvarname);
|
if (errbufvarname) free(errbufvarname);
|
||||||
errbufvarname = strdup(value);
|
errbufvarname = strdup(value);
|
||||||
sv = perl_get_sv(errbufvarname, TRUE | GV_ADDMULTI);
|
sv = perl_get_sv(errbufvarname, TRUE | GV_ADDMULTI);
|
||||||
@ -224,7 +224,7 @@ CODE:
|
|||||||
RETVAL = -1;
|
RETVAL = -1;
|
||||||
} else {
|
} else {
|
||||||
/* default, option specifying a char * value: */
|
/* default, option specifying a char * value: */
|
||||||
RETVAL = curl_setopt(curl, option, value);
|
RETVAL = curl_easy_setopt(curl, option, value);
|
||||||
}
|
}
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
RETVAL
|
RETVAL
|
||||||
|
Loading…
Reference in New Issue
Block a user