<?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: Making RESTful Requests in PHP</title>
	<atom:link href="http://www.gen-x-design.com/archives/making-restful-requests-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 04 Feb 2010 05:00:37 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mahmud Ahsan</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-2036</link>
		<dc:creator>Mahmud Ahsan</dc:creator>
		<pubDate>Sun, 24 Jan 2010 18:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-2036</guid>
		<description>I like your example. You wrote it very nicely and its easy to understand. Using framework is good to develop quickly but understanding real implementation is essential for knowledge.</description>
		<content:encoded><![CDATA[<p>I like your example. You wrote it very nicely and its easy to understand. Using framework is good to develop quickly but understanding real implementation is essential for knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newbieman</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-2029</link>
		<dc:creator>newbieman</dc:creator>
		<pubDate>Fri, 22 Jan 2010 14:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-2029</guid>
		<description>OH, I see.  Thanks for the heads up.  Can&#039;t believe in the cookbook tutorials I saw that no one at least mentioned mod_rewrite.  Probably they do somewhere.  Does transferring state by means of URL mean that something like &#039;http://www.mysite.com/api/controller?command=dosomething&#039;  (or its equivalent as a POST, and assuming the adjustments you mention in the article re: PUT data) would also be RESTful and could be used in lieu of mod_rewrite?</description>
		<content:encoded><![CDATA[<p>OH, I see.  Thanks for the heads up.  Can&#8217;t believe in the cookbook tutorials I saw that no one at least mentioned mod_rewrite.  Probably they do somewhere.  Does transferring state by means of URL mean that something like &#8216;http://www.mysite.com/api/controller?command=dosomething&#8217;  (or its equivalent as a POST, and assuming the adjustments you mention in the article re: PUT data) would also be RESTful and could be used in lieu of mod_rewrite?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-2025</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Wed, 20 Jan 2010 08:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-2025</guid>
		<description>Question 1: Check out Apache&#039;s mod_rewrite... that&#039;s the secret sauce (and why you don&#039;t find it in any REST-related articles, it&#039;s an Apache thing).  There are lots of mod rewrite tutorials out there that can help get you up to speed.  The other half of the equation here is that these URLs follow an MVC pattern of sorts (most modern frameworks use a combination of mod-rewrite and url routes.  The best place to start for this is any of the major PHP frameworks or Rails... they all follow the same paradigm).

Question 2: Mostly because while the articles cover similar topics, it&#039;s not intended that the code within each would be used together.  If you were to do that, you&#039;d have to tweak some class names.  Part 1 is about creating a RESTful API, and part 2 is about making RESTful requests.

Hope that helps :)</description>
		<content:encoded><![CDATA[<p>Question 1: Check out Apache&#8217;s mod_rewrite&#8230; that&#8217;s the secret sauce (and why you don&#8217;t find it in any REST-related articles, it&#8217;s an Apache thing).  There are lots of mod rewrite tutorials out there that can help get you up to speed.  The other half of the equation here is that these URLs follow an MVC pattern of sorts (most modern frameworks use a combination of mod-rewrite and url routes.  The best place to start for this is any of the major PHP frameworks or Rails&#8230; they all follow the same paradigm).</p>
<p>Question 2: Mostly because while the articles cover similar topics, it&#8217;s not intended that the code within each would be used together.  If you were to do that, you&#8217;d have to tweak some class names.  Part 1 is about creating a RESTful API, and part 2 is about making RESTful requests.</p>
<p>Hope that helps <img src='http://www.gen-x-design.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newbieman</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-2019</link>
		<dc:creator>newbieman</dc:creator>
		<pubDate>Tue, 19 Jan 2010 01:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-2019</guid>
		<description>OK, a seriously newbie question.  I&#039;m just not getting it.  If you are sending curl off on a mission to &#039;http://somedomain.com/api/somecommand/1 &#039;  what&#039;s to stop the web server from issuing a 404-Page not found (as mine is doing)?  I mean, there&#039;s no document there.  Where is the request being intercepted?  I haven&#039;t found any REST tutorials that spell out this basic issue.

Question 2: Why are there two completely different RestRequest classes in Part 1 and Part 2 of this article?

As you can see, I&#039;m not getting the basic concept, but maybe asking the question will jog something loose cognitively.</description>
		<content:encoded><![CDATA[<p>OK, a seriously newbie question.  I&#8217;m just not getting it.  If you are sending curl off on a mission to &#8216;http://somedomain.com/api/somecommand/1 &#8216;  what&#8217;s to stop the web server from issuing a 404-Page not found (as mine is doing)?  I mean, there&#8217;s no document there.  Where is the request being intercepted?  I haven&#8217;t found any REST tutorials that spell out this basic issue.</p>
<p>Question 2: Why are there two completely different RestRequest classes in Part 1 and Part 2 of this article?</p>
<p>As you can see, I&#8217;m not getting the basic concept, but maybe asking the question will jog something loose cognitively.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LILI</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-2013</link>
		<dc:creator>LILI</dc:creator>
		<pubDate>Wed, 13 Jan 2010 19:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-2013</guid>
		<description>Hi, very cool. Could you also post the result php file of the &quot;Create a REST API with PHP&quot; article like you did with this one? Thanks</description>
		<content:encoded><![CDATA[<p>Hi, very cool. Could you also post the result php file of the &#8220;Create a REST API with PHP&#8221; article like you did with this one? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-1990</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 26 Nov 2009 13:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-1990</guid>
		<description>Two things with the PUT example:
1. use php://temp instead of php://memory as the latter is limited by memory, the former uses available memory, and then a temporary file if needed (therefore more reliable)
2. the flag for the file handle should be &quot;r+&quot;, not &quot;rw&quot; (I think...)</description>
		<content:encoded><![CDATA[<p>Two things with the PUT example:<br />
1. use php://temp instead of php://memory as the latter is limited by memory, the former uses available memory, and then a temporary file if needed (therefore more reliable)<br />
2. the flag for the file handle should be &#8220;r+&#8221;, not &#8220;rw&#8221; (I think&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blinky</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-1986</link>
		<dc:creator>blinky</dc:creator>
		<pubDate>Mon, 23 Nov 2009 01:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-1986</guid>
		<description>i&#039;m new to the REST game, can you show an example of using the PUT &amp; POST requests? not usre if i&#039;m using them right.</description>
		<content:encoded><![CDATA[<p>i&#8217;m new to the REST game, can you show an example of using the PUT &amp; POST requests? not usre if i&#8217;m using them right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-1910</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 25 Sep 2009 20:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-1910</guid>
		<description>I got this error:

curl_setopt() [&lt;a href=&#039;function.curl-setopt&#039; rel=&quot;nofollow&quot;&gt;function.curl-setopt&lt;/a&gt;]: cannot represent a stream of type MEMORY as a STDIO FILE

Do i have to enable something?</description>
		<content:encoded><![CDATA[<p>I got this error:</p>
<p>curl_setopt() [<a href='function.curl-setopt' rel="nofollow">function.curl-setopt</a>]: cannot represent a stream of type MEMORY as a STDIO FILE</p>
<p>Do i have to enable something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: King Ahmad</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-1903</link>
		<dc:creator>King Ahmad</dc:creator>
		<pubDate>Fri, 18 Sep 2009 20:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-1903</guid>
		<description>The best and the only practical one that can be found in Internet.
I used it in our project and works as charm.
Coffee on me !</description>
		<content:encoded><![CDATA[<p>The best and the only practical one that can be found in Internet.<br />
I used it in our project and works as charm.<br />
Coffee on me !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: epilif</title>
		<link>http://www.gen-x-design.com/archives/making-restful-requests-in-php/#comment-1890</link>
		<dc:creator>epilif</dc:creator>
		<pubDate>Fri, 11 Sep 2009 10:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.gen-x-design.com/?p=269#comment-1890</guid>
		<description>And  class RestUtils? where is it?</description>
		<content:encoded><![CDATA[<p>And  class RestUtils? where is it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
