]> granicus.if.org Git - php/commitdiff
Gave the user the ability to specify encoding of the request.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 2 Feb 2003 20:56:51 +0000 (20:56 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 2 Feb 2003 20:56:51 +0000 (20:56 +0000)
Patch by jens@mermaidconsulting.dk.

ext/curl/interface.c

index 8602e529d4ff5afe1bdd26fbdf19bca16ffa17b5..591419a736d64ba68a1eb024134a60a0f9cc8767 100644 (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);