<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To: Making a PHP REST client to call REST resources</title>
	<atom:link href="http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 14:05:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: fabrice</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-394349</link>
		<dc:creator>fabrice</dc:creator>
		<pubDate>Mon, 30 Jan 2012 13:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-394349</guid>
		<description>hello,

i am currently working on an interface control, 
and i have a problem with the request about the user and password. 
i was inspired with this:
class RESTClient {

    private $root_url = &quot;&quot;;
    private $curr_url = &quot;&quot;;
    private $user_name = &quot;&quot;;
    private $password = &quot;&quot;;
    private $response = &quot;&quot;;
    private $responseBody = &quot;&quot;;
    private $req = null;

    public function __construct($root_url = &quot;&quot;, $user_name = &quot;&quot;, $password = &quot;&quot;) {
        $this-&gt;root_url = $this-&gt;curr_url = $root_url;
        $this-&gt;user_name = $user_name;
        $this-&gt;password = $password;
        if ($root_url != &quot;&quot;) {
            $this-&gt;createRequest(&quot;GET&quot;);
            $this-&gt;sendRequest();
to code but the answer is always negative.
please help</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>i am currently working on an interface control,<br />
and i have a problem with the request about the user and password.<br />
i was inspired with this:<br />
class RESTClient {</p>
<p>    private $root_url = &#8220;&#8221;;<br />
    private $curr_url = &#8220;&#8221;;<br />
    private $user_name = &#8220;&#8221;;<br />
    private $password = &#8220;&#8221;;<br />
    private $response = &#8220;&#8221;;<br />
    private $responseBody = &#8220;&#8221;;<br />
    private $req = null;</p>
<p>    public function __construct($root_url = &#8220;&#8221;, $user_name = &#8220;&#8221;, $password = &#8220;&#8221;) {<br />
        $this-&gt;root_url = $this-&gt;curr_url = $root_url;<br />
        $this-&gt;user_name = $user_name;<br />
        $this-&gt;password = $password;<br />
        if ($root_url != &#8220;&#8221;) {<br />
            $this-&gt;createRequest(&#8220;GET&#8221;);<br />
            $this-&gt;sendRequest();<br />
to code but the answer is always negative.<br />
please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ebenvios</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-394224</link>
		<dc:creator>ebenvios</dc:creator>
		<pubDate>Sun, 08 Jan 2012 16:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-394224</guid>
		<description>I just like the valuable info you supply on your articles. I&#039;ll bookmark your weblog and check again right here frequently. I&#039;m slightly sure I&#039;ll be informed plenty of new stuff right right here! Good luck for the following!</description>
		<content:encoded><![CDATA[<p>I just like the valuable info you supply on your articles. I&#8217;ll bookmark your weblog and check again right here frequently. I&#8217;m slightly sure I&#8217;ll be informed plenty of new stuff right right here! Good luck for the following!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunny</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-393965</link>
		<dc:creator>sunny</dc:creator>
		<pubDate>Tue, 13 Dec 2011 09:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-393965</guid>
		<description>hii
i am new to php
i have downloaded the restclient class from http://www.phpclasses.org
and while working with the example above
i am gettin eroor
Call to undefined method RESTClient::createRequest() 
i am using xampp server version1.7.7
please help</description>
		<content:encoded><![CDATA[<p>hii<br />
i am new to php<br />
i have downloaded the restclient class from <a href="http://www.phpclasses.org" rel="nofollow">http://www.phpclasses.org</a><br />
and while working with the example above<br />
i am gettin eroor<br />
Call to undefined method RESTClient::createRequest()<br />
i am using xampp server version1.7.7<br />
please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rockynu</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-393055</link>
		<dc:creator>rockynu</dc:creator>
		<pubDate>Sun, 08 May 2011 15:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-393055</guid>
		<description>appid=demo  then it works</description>
		<content:encoded><![CDATA[<p>appid=demo  then it works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-356088</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Thu, 17 Mar 2011 00:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-356088</guid>
		<description>have you done already PUT method?</description>
		<content:encoded><![CDATA[<p>have you done already PUT method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Làm Web</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-317935</link>
		<dc:creator>Làm Web</dc:creator>
		<pubDate>Tue, 11 Jan 2011 06:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-317935</guid>
		<description>Could i use HTTP_Request to GET REST in google customsearch v1 ?</description>
		<content:encoded><![CDATA[<p>Could i use HTTP_Request to GET REST in google customsearch v1 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nanocult</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-305459</link>
		<dc:creator>nanocult</dc:creator>
		<pubDate>Sat, 18 Dec 2010 19:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-305459</guid>
		<description>&lt;strong&gt;HTTP_Request&lt;/strong&gt; package has been superseded. Use &lt;a href=&quot;&quot; title=&quot;HTTP_Request2&quot; rel=&quot;nofollow&quot;&gt;HTTP_Request2&lt;/a&gt; instead. In the code above, please correct the following: &lt;code&gt;require_once &quot;HTTP/Request.php&quot;;&lt;/code&gt;
You have to change the following:
&lt;strong&gt;sendRequest()&lt;/strong&gt; to &lt;strong&gt;send()&lt;/strong&gt;
And change the function in RESTClient class:
&lt;code&gt;private function addPostData($arr) {
        if ($arr != null) {
            foreach ($arr as $key =&gt; $value) {
                $this-&gt;req-&gt;&lt;strong&gt;addPostData($key, $value);&lt;/strong&gt;
            }
        }
    }&lt;/code&gt;
to the following:
&lt;code&gt;private function addPostData($arr) {
        if ($arr != null) {
            foreach ($arr as $key =&gt; $value) {
                $this-&gt;req-&gt;addPostParameter($key, $value);
            }
        }
    }&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><strong>HTTP_Request</strong> package has been superseded. Use <a href="" title="HTTP_Request2" rel="nofollow">HTTP_Request2</a> instead. In the code above, please correct the following: <code>require_once "HTTP/Request.php";</code><br />
You have to change the following:<br />
<strong>sendRequest()</strong> to <strong>send()</strong><br />
And change the function in RESTClient class:<br />
<code>private function addPostData($arr) {<br />
        if ($arr != null) {<br />
            foreach ($arr as $key =&gt; $value) {<br />
                $this-&gt;req-&gt;<strong>addPostData($key, $value);</strong><br />
            }<br />
        }<br />
    }</code><br />
to the following:<br />
<code>private function addPostData($arr) {<br />
        if ($arr != null) {<br />
            foreach ($arr as $key =&gt; $value) {<br />
                $this-&gt;req-&gt;addPostParameter($key, $value);<br />
            }<br />
        }<br />
    }</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vallabh V</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-241392</link>
		<dc:creator>Vallabh V</dc:creator>
		<pubDate>Fri, 25 Jun 2010 06:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-241392</guid>
		<description>Nice article!!!  How the Pear HTTP is better than CURL?</description>
		<content:encoded><![CDATA[<p>Nice article!!!  How the Pear HTTP is better than CURL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vallabh V</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-241391</link>
		<dc:creator>Vallabh V</dc:creator>
		<pubDate>Fri, 25 Jun 2010 06:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-241391</guid>
		<description>where do I find HTTP/Request.php file</description>
		<content:encoded><![CDATA[<p>where do I find HTTP/Request.php file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taner Ozdas</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-215922</link>
		<dc:creator>Taner Ozdas</dc:creator>
		<pubDate>Fri, 26 Mar 2010 07:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-215922</guid>
		<description>Is there any way to use REST without pear? In a shared hosting environment , it is not possiable to use it .</description>
		<content:encoded><![CDATA[<p>Is there any way to use REST without pear? In a shared hosting environment , it is not possiable to use it .</p>
]]></content:encoded>
	</item>
</channel>
</rss>

