summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-02 20:56:51 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-02 20:56:51 +0000
commit923ae6ca3ef5a5ef8af2e60ab3fb055c685be5e8 (patch)
tree164650f26213d2c44eb25c51ba8d5454b5e11b74 /ext/curl
parent87a113f5c10af66c9a0b5c8620ccf4eb001ad427 (diff)
downloadphp-git-923ae6ca3ef5a5ef8af2e60ab3fb055c685be5e8.tar.gz
Gave the user the ability to specify encoding of the request.
Patch by jens@mermaidconsulting.dk.
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 8602e529d4..591419a736 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -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);