Gave the user the ability to specify encoding of the request.

Patch by jens@mermaidconsulting.dk.
This commit is contained in:
Ilia Alshanetsky 2003-02-02 20:56:51 +00:00
parent 87a113f5c1
commit 923ae6ca3e

View File

@ -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);