<?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: Array versus String in CURLOPT_POSTFIELDS</title> <atom:link href="http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/feed" rel="self" type="application/rss+xml" /><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields</link> <description>Web Programming, Linux System Administation, and other geeky stuff</description> <lastBuildDate>Thu, 05 Jan 2012 11:11:59 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Piter</title><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/comment-page-1#comment-2795</link> <dc:creator>Piter</dc:creator> <pubDate>Fri, 21 Oct 2011 20:58:37 +0000</pubDate> <guid
isPermaLink="false">http://www.brandonchecketts.com/?p=362#comment-2795</guid> <description>If you want send a file using a post, you have to add &#039;@&#039; before file location in value.Thx for good article.</description> <content:encoded><![CDATA[<p>If you want send a file using a post, you have to add &#8216;@&#8217; before file location in value.</p><p>Thx for good article.</p> ]]></content:encoded> </item> <item><title>By: Chuck Frankel</title><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/comment-page-1#comment-2786</link> <dc:creator>Chuck Frankel</dc:creator> <pubDate>Wed, 12 Oct 2011 23:29:13 +0000</pubDate> <guid
isPermaLink="false">http://www.brandonchecketts.com/?p=362#comment-2786</guid> <description>What about execution times between the two?</description> <content:encoded><![CDATA[<p>What about execution times between the two?</p> ]]></content:encoded> </item> <item><title>By: Rich</title><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/comment-page-1#comment-2663</link> <dc:creator>Rich</dc:creator> <pubDate>Wed, 11 May 2011 11:31:04 +0000</pubDate> <guid
isPermaLink="false">http://www.brandonchecketts.com/?p=362#comment-2663</guid> <description>Thanks for the post - works like a dream!</description> <content:encoded><![CDATA[<p>Thanks for the post &#8211; works like a dream!</p> ]]></content:encoded> </item> <item><title>By: Podnikatel</title><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/comment-page-1#comment-1827</link> <dc:creator>Podnikatel</dc:creator> <pubDate>Sun, 21 Nov 2010 19:35:07 +0000</pubDate> <guid
isPermaLink="false">http://www.brandonchecketts.com/?p=362#comment-1827</guid> <description>Great article!But for send urlencoded form, I recommend use this:curl_setopt($curl_object, CURLOPT_POSTFIELDS, http_build_query($data, &#039;&#039;, &#039;&amp;&#039;));Function http_build_query make url encoding for us with very easy and simply way. Instead foreach cycle...</description> <content:encoded><![CDATA[<p>Great article!</p><p>But for send urlencoded form, I recommend use this:</p><p>curl_setopt($curl_object, CURLOPT_POSTFIELDS, http_build_query($data, &#8221;, &#8216;&amp;&#8217;));</p><p>Function http_build_query make url encoding for us with very easy and simply way. Instead foreach cycle&#8230;</p> ]]></content:encoded> </item> <item><title>By: Kerr</title><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/comment-page-1#comment-1812</link> <dc:creator>Kerr</dc:creator> <pubDate>Thu, 21 Oct 2010 00:44:08 +0000</pubDate> <guid
isPermaLink="false">http://www.brandonchecketts.com/?p=362#comment-1812</guid> <description>Thank you so much for posting this information!  I was pulling my hair out with POSTing whilst developing a RESTful wrapper class with cURL.</description> <content:encoded><![CDATA[<p>Thank you so much for posting this information!  I was pulling my hair out with POSTing whilst developing a RESTful wrapper class with cURL.</p> ]]></content:encoded> </item> <item><title>By: dol</title><link>http://www.brandonchecketts.com/archives/array-versus-string-in-curlopt_postfields/comment-page-1#comment-1802</link> <dc:creator>dol</dc:creator> <pubDate>Mon, 04 Oct 2010 08:30:36 +0000</pubDate> <guid
isPermaLink="false">http://www.brandonchecketts.com/?p=362#comment-1802</guid> <description>If you use the PHP5 function &#039;http_build_query&#039; your code will be a few line shorter. http_build_query also do urlencoding for key and value.</description> <content:encoded><![CDATA[<p>If you use the PHP5 function &#8216;http_build_query&#8217; your code will be a few line shorter. http_build_query also do urlencoding for key and value.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 5/18 queries in 0.005 seconds using disk

Served from: www.brandonchecketts.com @ 2012-02-07 18:08:22 -->
