X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=2e34c919e52cf467adc184bc89a615225056a6c1;hb=a23a141a7ff3a3d3163563eae67cc4839b5657c6;hp=925cd6d06b5bf84f3e3f3507c190fd04a8fa37bb;hpb=edc84b40eb2c5be04492fa98fec5833a030782eb;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index 925cd6d..2e34c91 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -405,12 +405,10 @@ static inline void _http_request_object_declare_default_properties(TSRMLS_D) /* * Auth Constants */ -# if LIBCURL_VERSION_NUM >= 0x070a05 DCL_CONST(long, "AUTH_BASIC", CURLAUTH_BASIC); DCL_CONST(long, "AUTH_DIGEST", CURLAUTH_DIGEST); DCL_CONST(long, "AUTH_NTLM", CURLAUTH_NTLM); DCL_CONST(long, "AUTH_ANY", CURLAUTH_ANY); -# endif /* LIBCURL_VERSION_NUM */ #endif /* WONKY */ } @@ -1037,7 +1035,7 @@ PHP_METHOD(HttpRequest, getUrl) * Set the request method. * * Expects an int as parameter specifying the request method to use. - * In PHP 5.1+ HttpRequest::METH, otherwise the HTTP_METH constants can be used. + * In PHP 5.1+ HttpRequest::METH_*, otherwise the HTTP_METH_* constants can be used. * * Returns TRUE on success, or FALSE on failure. */ @@ -1959,7 +1957,7 @@ PHP_METHOD(HttpRequest, clearHistory) * GET example: *
  * setOptions(array('lastmodified' => filemtime('local.rss')));
  * $r->addQueryData(array('category' => 3));
  * try {
@@ -1976,7 +1974,7 @@ PHP_METHOD(HttpRequest, clearHistory)
  * POST example:
  * 
  * setOptions(array('cookies' => array('lang' => 'de')));
  * $r->addPostFields(array('user' => 'mike', 'pass' => 's3c|r3t'));
  * $r->addPostFile('image', 'profile.jpg', 'image/jpeg');