<?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, 10 Mar 2010 14:10:47 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: otto06217</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-208211</link>
		<dc:creator>otto06217</dc:creator>
		<pubDate>Thu, 04 Feb 2010 03:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-208211</guid>
		<description>http://pear.php.net/package/HTTP_Request/

The author mentioned this pear package above.

I hope this helps.

Within  the next days I&#039;ll try it out.

Regards

otto06217</description>
		<content:encoded><![CDATA[<p><a href="http://pear.php.net/package/HTTP_Request/" rel="nofollow">http://pear.php.net/package/HTTP_Request/</a></p>
<p>The author mentioned this pear package above.</p>
<p>I hope this helps.</p>
<p>Within  the next days I&#8217;ll try it out.</p>
<p>Regards</p>
<p>otto06217</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tester</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-207000</link>
		<dc:creator>tester</dc:creator>
		<pubDate>Fri, 22 Jan 2010 10:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-207000</guid>
		<description>I want to know what is the content of file HTTP/Request.php.
What is in this file?</description>
		<content:encoded><![CDATA[<p>I want to know what is the content of file HTTP/Request.php.<br />
What is in this file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geddy</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-204987</link>
		<dc:creator>Geddy</dc:creator>
		<pubDate>Wed, 30 Dec 2009 17:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-204987</guid>
		<description>George, excellent article. However, I&#039;m trying to begin writing my own lightweight REST class for use with Amazon Web Services, but I&#039;m confused by one thing in your class:

require_once &quot;RESTclient.php&quot;;

Is this line just assuming that we have *some REST client* to use? Which one would you recommend using? I only need to send GET requests for the time being. If you could reply to this, it&#039;d be much appreciated :)

Thanks man,
-Geddy</description>
		<content:encoded><![CDATA[<p>George, excellent article. However, I&#8217;m trying to begin writing my own lightweight REST class for use with Amazon Web Services, but I&#8217;m confused by one thing in your class:</p>
<p>require_once &#8220;RESTclient.php&#8221;;</p>
<p>Is this line just assuming that we have *some REST client* to use? Which one would you recommend using? I only need to send GET requests for the time being. If you could reply to this, it&#8217;d be much appreciated :)</p>
<p>Thanks man,<br />
-Geddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaspreet</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-204741</link>
		<dc:creator>Jaspreet</dc:creator>
		<pubDate>Mon, 28 Dec 2009 13:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-204741</guid>
		<description>this is the method &gt; loginForm 
what should i write in form action means in .. .action=&quot;???&quot; m</description>
		<content:encoded><![CDATA[<p>this is the method &gt; loginForm<br />
what should i write in form action means in .. .action=&#8221;???&#8221; m</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaspreet</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-204740</link>
		<dc:creator>Jaspreet</dc:creator>
		<pubDate>Mon, 28 Dec 2009 13:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-204740</guid>
		<description>Hi,
can anyone help me in using REST.
Lets say i have link (http://dev.ss-build.com/server2/services/application.wadl).
It have a method 
How can i access or use or call this method .
Now, let us say i have created a php page containing form where i will enter my email and password.
now when i click on login after entering my mail and password.
It should use this method and we can say a session will start and i will able to acess the other page.
Now can any one tell me how can i do this??
What should i write in ACTION 
please give a example.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
can anyone help me in using REST.<br />
Lets say i have link (<a href="http://dev.ss-build.com/server2/services/application.wadl)" rel="nofollow">http://dev.ss-build.com/server2/services/application.wadl)</a>.<br />
It have a method<br />
How can i access or use or call this method .<br />
Now, let us say i have created a php page containing form where i will enter my email and password.<br />
now when i click on login after entering my mail and password.<br />
It should use this method and we can say a session will start and i will able to acess the other page.<br />
Now can any one tell me how can i do this??<br />
What should i write in ACTION<br />
please give a example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adolfo</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-201986</link>
		<dc:creator>Adolfo</dc:creator>
		<pubDate>Wed, 25 Nov 2009 17:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-201986</guid>
		<description>how rest work with this kind of uris ... http://api.local.yahoo.com/MapsService/V1/geocode?appis  without extension... it sounds more familiar 
http://api.local.yahoo.com/MapsService/V1/geocode.php?appis

thanks</description>
		<content:encoded><![CDATA[<p>how rest work with this kind of uris &#8230; <a href="http://api.local.yahoo.com/MapsService/V1/geocode?appis" rel="nofollow">http://api.local.yahoo.com/MapsService/V1/geocode?appis</a>  without extension&#8230; it sounds more familiar<br />
<a href="http://api.local.yahoo.com/MapsService/V1/geocode.php?appis" rel="nofollow">http://api.local.yahoo.com/MapsService/V1/geocode.php?appis</a></p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-184812</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 14 Jun 2009 21:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-184812</guid>
		<description>There is a great Eclipse plugin where you can visually construct your REST call: http://http4e.roussev.org/ 

Of course this is not an PHP client, yet it is very priceless tool for REST and HTTP.</description>
		<content:encoded><![CDATA[<p>There is a great Eclipse plugin where you can visually construct your REST call: <a href="http://http4e.roussev.org/" rel="nofollow">http://http4e.roussev.org/</a> </p>
<p>Of course this is not an PHP client, yet it is very priceless tool for REST and HTTP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simo</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-167708</link>
		<dc:creator>simo</dc:creator>
		<pubDate>Thu, 05 Feb 2009 12:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-167708</guid>
		<description>Sorry I wanna mean how many script shall I write for this action! Request Response and parsing with xerces.
Thanx</description>
		<content:encoded><![CDATA[<p>Sorry I wanna mean how many script shall I write for this action! Request Response and parsing with xerces.<br />
Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simo</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-167707</link>
		<dc:creator>simo</dc:creator>
		<pubDate>Thu, 05 Feb 2009 12:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-167707</guid>
		<description>hallo,
can somebody help me to consum a webservice using php curl and xerces with data from MySQL...I am a newby but i make it subjectif &quot;learning by doing&quot;
thanks a lot</description>
		<content:encoded><![CDATA[<p>hallo,<br />
can somebody help me to consum a webservice using php curl and xerces with data from MySQL&#8230;I am a newby but i make it subjectif &#8220;learning by doing&#8221;<br />
thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam B</title>
		<link>http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/comment-page-1/#comment-139718</link>
		<dc:creator>Adam B</dc:creator>
		<pubDate>Wed, 22 Oct 2008 16:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sematopia.com/?p=153#comment-139718</guid>
		<description>&lt;code&gt;	
		
		// PHP Functions needed to access various APIs
		function get_REST_xml($uri, $rawXML = 0)
{
global $parsed;
	global $uri;
	$getXML = curl_init() or die(curl_error());    // initialize curl handle
	curl_setopt($getXML, CURLOPT_URL,$uri); // set url to post to 
	curl_setopt($getXML, CURLOPT_FAILONERROR, 1);
	curl_setopt($getXML, CURLOPT_FOLLOWLOCATION, 1);// allow redirects 
	curl_setopt($getXML, CURLOPT_RETURNTRANSFER,1); // return into a variable 
//	curl_setopt($getXML, CURLOPT_SSL_VERIFYHOST,  2);
//	curl_setopt($getXML, CURLOPT_SSL_VERIFYPEER,  0);
	curl_setopt($getXML	, CURLOPT_HEADER, 0); 
	curl_setopt($getXML, CURLOPT_TIMEOUT, 3); // times out after 4s
	// curl_setopt($getXML,CURLOPT_POST,1); // Set the method as post
	// curl_setopt($getXML, CURLOPT_POSTFIELDS, &quot;key=&quot;.$API_key);
	$pulledXML = curl_exec($getXML);
	//echo (&quot;&quot;);
	//print_r(curl_getinfo($getXML)); 
	//echo (&quot;&quot;);
	// echo &quot;\n\ncURL error number:&quot; .curl_errno($getXML); 
	// echo &quot;\n\ncURL error:&quot; . curl_error($getXML); 
	// ...close cURL handle ($getXML) below
	
	curl_close($getXML);
	if ($rawXML == 0)
		{
			$parsed = simplexml_load_string($pulledXML);
			return $parsed;
		}
		elseif($rawXML == 1)
		{
			return $pulledXML;
		}
		else
		{
			echo &quot;Function Error&quot;;
		}
		}	
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>	</p>
<p>		// PHP Functions needed to access various APIs<br />
		function get_REST_xml($uri, $rawXML = 0)<br />
{<br />
global $parsed;<br />
	global $uri;<br />
	$getXML = curl_init() or die(curl_error());    // initialize curl handle<br />
	curl_setopt($getXML, CURLOPT_URL,$uri); // set url to post to<br />
	curl_setopt($getXML, CURLOPT_FAILONERROR, 1);<br />
	curl_setopt($getXML, CURLOPT_FOLLOWLOCATION, 1);// allow redirects<br />
	curl_setopt($getXML, CURLOPT_RETURNTRANSFER,1); // return into a variable<br />
//	curl_setopt($getXML, CURLOPT_SSL_VERIFYHOST,  2);<br />
//	curl_setopt($getXML, CURLOPT_SSL_VERIFYPEER,  0);<br />
	curl_setopt($getXML	, CURLOPT_HEADER, 0);<br />
	curl_setopt($getXML, CURLOPT_TIMEOUT, 3); // times out after 4s<br />
	// curl_setopt($getXML,CURLOPT_POST,1); // Set the method as post<br />
	// curl_setopt($getXML, CURLOPT_POSTFIELDS, "key=".$API_key);<br />
	$pulledXML = curl_exec($getXML);<br />
	//echo ("");<br />
	//print_r(curl_getinfo($getXML));<br />
	//echo ("");<br />
	// echo "\n\ncURL error number:" .curl_errno($getXML);<br />
	// echo "\n\ncURL error:" . curl_error($getXML);<br />
	// ...close cURL handle ($getXML) below</p>
<p>	curl_close($getXML);<br />
	if ($rawXML == 0)<br />
		{<br />
			$parsed = simplexml_load_string($pulledXML);<br />
			return $parsed;<br />
		}<br />
		elseif($rawXML == 1)<br />
		{<br />
			return $pulledXML;<br />
		}<br />
		else<br />
		{<br />
			echo "Function Error";<br />
		}<br />
		}<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
