From fb9722e3794bd20bf1012ab6936533a25b0ed1fe Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 9 Oct 2005 16:07:12 +0000 Subject: [PATCH] - examples fixup --- docs/examples/GET_Queries.php | 5 +++-- docs/examples/KISS_XMLRPC_Client.php | 2 +- docs/examples/tutorial.txt | 7 ++++--- docs/http.ini | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) 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 -- 2.30.2