mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Gave the user the ability to specify encoding of the request.
Patch by jens@mermaidconsulting.dk.
This commit is contained in:
parent
87a113f5c1
commit
923ae6ca3e
@ -202,6 +202,7 @@ PHP_MINIT_FUNCTION(curl)
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_SSLENGINE);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_SSLENGINE_DEFAULT);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_CRLF);
|
||||
REGISTER_CURL_CONSTANT(CURLOPT_ENCODING);
|
||||
|
||||
/* Constants effecting the way CURLOPT_CLOSEPOLICY works */
|
||||
REGISTER_CURL_CONSTANT(CURLCLOSEPOLICY_LEAST_RECENTLY_USED);
|
||||
@ -805,7 +806,8 @@ PHP_FUNCTION(curl_setopt)
|
||||
case CURLOPT_SSLKEYTYPE:
|
||||
case CURLOPT_SSLKEYPASSWD:
|
||||
case CURLOPT_SSLENGINE:
|
||||
case CURLOPT_SSLENGINE_DEFAULT: {
|
||||
case CURLOPT_SSLENGINE_DEFAULT:
|
||||
case CURLOPT_ENCODING: {
|
||||
char *copystr = NULL;
|
||||
|
||||
convert_to_string_ex(zvalue);
|
||||
|
Loading…
Reference in New Issue
Block a user