<?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 for CodersCult</title> <atom:link href="http://coderscult.com/comments/feed/" rel="self" type="application/rss+xml" /><link>http://coderscult.com</link> <description>Learn PHP Web Development</description> <lastBuildDate>Tue, 18 Jun 2013 16:10:47 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>Comment on PHP cURL Cookies Example by Rash</title><link>http://coderscult.com/php-curl-cookies-example/#comment-157</link> <dc:creator>Rash</dc:creator> <pubDate>Tue, 18 Jun 2013 16:10:47 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=346#comment-157</guid> <description><![CDATA[Thanks for saving my life. Does that make you a hero ? I can&#039;t say, but yes.]]></description> <content:encoded><![CDATA[<p>Thanks for saving my life.<br /> Does that make you a hero ? I can&#8217;t say, but yes.</p> ]]></content:encoded> </item> <item><title>Comment on PHP cURL Tutorial and Example by Mike (Cult Master)</title><link>http://coderscult.com/php-curl-tutorial-and-example/#comment-156</link> <dc:creator>Mike (Cult Master)</dc:creator> <pubDate>Fri, 14 Jun 2013 15:57:51 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=348#comment-156</guid> <description><![CDATA[You can scrape it from the value returned by curl_exec]]></description> <content:encoded><![CDATA[<p>You can scrape it from the value returned by curl_exec</p> ]]></content:encoded> </item> <item><title>Comment on PHP cURL Tutorial and Example by Javed</title><link>http://coderscult.com/php-curl-tutorial-and-example/#comment-155</link> <dc:creator>Javed</dc:creator> <pubDate>Thu, 13 Jun 2013 18:03:16 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=348#comment-155</guid> <description><![CDATA[hi , how can i extract data from scraped page]]></description> <content:encoded><![CDATA[<p>hi , how can i extract data from scraped page</p> ]]></content:encoded> </item> <item><title>Comment on PHP cURL Tutorial and Example by pravin</title><link>http://coderscult.com/php-curl-tutorial-and-example/#comment-154</link> <dc:creator>pravin</dc:creator> <pubDate>Thu, 13 Jun 2013 12:19:17 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=348#comment-154</guid> <description><![CDATA[thanks for posting the easy tutorial]]></description> <content:encoded><![CDATA[<p>thanks for posting the easy tutorial</p> ]]></content:encoded> </item> <item><title>Comment on PHP cURL Tutorial and Example by matt</title><link>http://coderscult.com/php-curl-tutorial-and-example/#comment-153</link> <dc:creator>matt</dc:creator> <pubDate>Tue, 11 Jun 2013 17:08:45 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=348#comment-153</guid> <description><![CDATA[Thanks for posting something so straightforward and easy to follow.]]></description> <content:encoded><![CDATA[<p>Thanks for posting something so straightforward and easy to follow.</p> ]]></content:encoded> </item> <item><title>Comment on Google Translate Working Example by Mike (Cult Master)</title><link>http://coderscult.com/google-translate-working-example/#comment-152</link> <dc:creator>Mike (Cult Master)</dc:creator> <pubDate>Tue, 11 Jun 2013 13:08:24 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=453#comment-152</guid> <description><![CDATA[Hi. This is an old example and yup it no longer works due to changes made by Google]]></description> <content:encoded><![CDATA[<p>Hi. This is an old example and yup it no longer works due to changes made by Google</p> ]]></content:encoded> </item> <item><title>Comment on How to Post Data with cURL in PHP by Sohail Sheikh</title><link>http://coderscult.com/how-to-post-data-with-curl-in-php/#comment-151</link> <dc:creator>Sohail Sheikh</dc:creator> <pubDate>Tue, 11 Jun 2013 11:42:39 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=338#comment-151</guid> <description><![CDATA[Below are Request &amp; Response given in API document.Example Request curl -X GET -H &quot;X-Auth-Token: 6c602fc6b93d0c4b4797d6481d408f17&quot; &quot;http://api.pcsbeacon.com/v1/collections &quot; Example Response [ { &quot;collection_id&quot;: 123, &quot;name&quot;: &quot;The Lewis Carroll Collection&quot; }, { &quot;collection_id&quot;: 156, &quot;name&quot;: &quot;Classics: Machiavelli&quot; } ]When i try its not working for me its give me invalid token or say Service Unavailable.Token detail:--- {&quot;access&quot;:{&quot;token&quot;:{&quot;id&quot;:&quot;1c92bf205279177c4fdece41e440fc48&quot;,&quot;expires&quot;:&quot;Wed, 12 Jun 2013 11:43:03 +0000&quot;}}}i will give my code which i used for that.$data = array(&quot;X-Auth-Token&quot; =&gt; &#039;1c92bf205279177c4fdece41e440fc48&#039;); $data_string = json_encode($data); $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,&#039;http://api.pcsbeacon.com/v1/collections&#039;); curl_setopt($ch, CURLOPT_HTTPHEADER, array( &#039;Content-Type: application/json&#039;, &#039;X-Auth-Token: 1c92bf205279177c4fdece41e440fc48&#039;, &#039;Content-Length: &#039; . strlen($data_string) ) ); if(curl_exec($ch) === false) { echo &#039;Curl error: &#039; . curl_error($ch); } else { echo &#039;Operation completed without any errors&#039;; } $result = curl_exec($ch); print_r($result);Thanks]]></description> <content:encoded><![CDATA[<p>Below are Request &amp; Response given in API document.</p><p>Example Request<br /> curl -X GET<br /> -H &#8220;X-Auth-Token: 6c602fc6b93d0c4b4797d6481d408f17&#8243;<br /> &#8220;http://api.pcsbeacon.com/v1/collections &#8221;<br /> Example Response<br /> [<br /> {<br /> "collection_id": 123,<br /> "name": "The Lewis Carroll Collection"<br /> },<br /> {<br /> "collection_id": 156,<br /> "name": "Classics: Machiavelli"<br /> }<br /> ]</p><p>When i try its not working for me its give me invalid token or say Service Unavailable.</p><p>Token detail:&#8212;<br /> {&#8220;access&#8221;:{&#8220;token&#8221;:{&#8220;id&#8221;:&#8221;1c92bf205279177c4fdece41e440fc48&#8243;,&#8221;expires&#8221;:&#8221;Wed, 12 Jun 2013 11:43:03 +0000&#8243;}}}</p><p>i will give my code which i used for that.</p><p>$data = array(&#8220;X-Auth-Token&#8221; =&gt; &#8217;1c92bf205279177c4fdece41e440fc48&#8242;);<br /> $data_string = json_encode($data);<br /> $ch=curl_init();<br /> curl_setopt($ch,CURLOPT_URL,&#8217;http://api.pcsbeacon.com/v1/collections&#8217;);<br /> curl_setopt($ch, CURLOPT_HTTPHEADER, array(<br /> &#8216;Content-Type: application/json&#8217;,<br /> &#8216;X-Auth-Token: 1c92bf205279177c4fdece41e440fc48&#8242;,<br /> &#8216;Content-Length: &#8216; . strlen($data_string)</p><p> )<br /> );<br /> if(curl_exec($ch) === false)<br /> {<br /> echo &#8216;Curl error: &#8216; . curl_error($ch);<br /> }<br /> else<br /> {<br /> echo &#8216;Operation completed without any errors&#8217;;<br /> }</p><p>$result = curl_exec($ch);<br /> print_r($result);</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>Comment on Google Translate Working Example by chitranjan</title><link>http://coderscult.com/google-translate-working-example/#comment-150</link> <dc:creator>chitranjan</dc:creator> <pubDate>Mon, 10 Jun 2013 11:05:22 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=453#comment-150</guid> <description><![CDATA[not working you code]]></description> <content:encoded><![CDATA[<p>not working you code</p> ]]></content:encoded> </item> <item><title>Comment on PHP cURL Tutorial and Example by Mike (Cult Master)</title><link>http://coderscult.com/php-curl-tutorial-and-example/#comment-149</link> <dc:creator>Mike (Cult Master)</dc:creator> <pubDate>Mon, 10 Jun 2013 07:28:45 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=348#comment-149</guid> <description><![CDATA[Glad to have helped]]></description> <content:encoded><![CDATA[<p>Glad to have helped</p> ]]></content:encoded> </item> <item><title>Comment on PHP cURL Tutorial and Example by jaisonsaji</title><link>http://coderscult.com/php-curl-tutorial-and-example/#comment-148</link> <dc:creator>jaisonsaji</dc:creator> <pubDate>Mon, 10 Jun 2013 04:02:45 +0000</pubDate> <guid isPermaLink="false">http://coderscult.com/?p=348#comment-148</guid> <description><![CDATA[nice tutorial. I was searching for something like this. Thanks for posting!]]></description> <content:encoded><![CDATA[<p>nice tutorial. I was searching for something like this. Thanks for posting!</p> ]]></content:encoded> </item> </channel> </rss>