From: Michael Wallner Date: Sun, 9 Oct 2005 16:07:12 +0000 (+0000) Subject: - examples fixup X-Git-Tag: RELEASE_0_15_0~21 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=fb9722e3794bd20bf1012ab6936533a25b0ed1fe;p=m6w6%2Fext-http - examples fixup --- diff --git a/docs/examples/GET_Queries.php b/docs/examples/GET_Queries.php index cb21cb6..671f640 100644 --- a/docs/examples/GET_Queries.php +++ b/docs/examples/GET_Queries.php @@ -1,9 +1,10 @@ setOptions( - array( 'cookiestore' => '../cookies/google.txt', + array( 'cookiestore' => 'google.txt', ) ); diff --git a/docs/examples/KISS_XMLRPC_Client.php b/docs/examples/KISS_XMLRPC_Client.php index b9e955b..ac7498d 100644 --- a/docs/examples/KISS_XMLRPC_Client.php +++ b/docs/examples/KISS_XMLRPC_Client.php @@ -26,7 +26,7 @@ class XmlRpcClient if ($this->namespace) { $method = $this->namespace .'.'. $method; } - $this->request->setPostData(xmlrpc_encode_request($method, $params)); + $this->request->setRawPostData(xmlrpc_encode_request($method, $params)); $response = $this->request->send(); if ($response->getResponseCode() != 200) { throw new Exception($response->getBody(), $response->getResponseCode()); diff --git a/docs/examples/tutorial.txt b/docs/examples/tutorial.txt index b29fa96..96ee9de 100644 --- a/docs/examples/tutorial.txt +++ b/docs/examples/tutorial.txt @@ -12,11 +12,12 @@ $Revision$ read from and written to a file. setOptions( - array( 'cookiestore' => '../cookies/google.txt', + array( 'cookiestore' => 'google.txt', ) ); @@ -205,7 +206,7 @@ class XmlRpcClient if ($this->namespace) { $method = $this->namespace .'.'. $method; } - $this->request->setPostData(xmlrpc_encode_request($method, $params)); + $this->request->setRawPostData(xmlrpc_encode_request($method, $params)); $response = $this->request->send(); if ($response->getResponseCode() != 200) { throw new Exception($response->getBody(), $response->getResponseCode()); diff --git a/docs/http.ini b/docs/http.ini index 73c909c..bd575f2 100644 --- a/docs/http.ini +++ b/docs/http.ini @@ -8,7 +8,7 @@ http.only_exceptions = 0 ; the hashing algorithm with wich ETags are generated ; you can use mhash constants if ext/mhash is enabled, or their ; literal representation if ext/http was linked against libmhash -;http.etag_mode = MHASH_TIGER ; same as 7 +;http.etag_mode = HTTP_ETAG_MHASH_TIGER ; same as 7 http.etag_mode = HTTP_ETAG_MD5 ; allowed request methods