<?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: REST-esting with cURL</title>
	<atom:link href="http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/</link>
	<description>It&#039;s easy if you know how</description>
	<lastBuildDate>Fri, 02 Jul 2010 20:21:05 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hai Vu</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1860</link>
		<dc:creator>Hai Vu</dc:creator>
		<pubDate>Thu, 13 May 2010 15:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1860</guid>
		<description>Thank you for your concise post. It helps greatly, especially the POST request.</description>
		<content:encoded><![CDATA[<p>Thank you for your concise post. It helps greatly, especially the POST request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curious &#187; REST-esting with cURL: File Handling</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1749</link>
		<dc:creator>Curious &#187; REST-esting with cURL: File Handling</dc:creator>
		<pubDate>Mon, 12 Apr 2010 18:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1749</guid>
		<description>[...] For more examples using cURL for testing web services, see here. [...]</description>
		<content:encoded><![CDATA[<p>[...] For more examples using cURL for testing web services, see here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1662</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Tue, 30 Mar 2010 12:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1662</guid>
		<description>Useful breakdown of curl commands, thanks dude.</description>
		<content:encoded><![CDATA[<p>Useful breakdown of curl commands, thanks dude.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeny</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1584</link>
		<dc:creator>Evgeny</dc:creator>
		<pubDate>Tue, 23 Feb 2010 11:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1584</guid>
		<description>Some json web services expect their input in multipart form-data, so instead of doing -d&quot;user=a&amp;pass=b&quot; you need to do -F&quot;user=a&quot; -F&quot;pass=b&quot;.

One example is the reviewboard.org json api.</description>
		<content:encoded><![CDATA[<p>Some json web services expect their input in multipart form-data, so instead of doing -d&#8221;user=a&amp;pass=b&#8221; you need to do -F&#8221;user=a&#8221; -F&#8221;pass=b&#8221;.</p>
<p>One example is the reviewboard.org json api.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ehren Metcalfe</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1357</link>
		<dc:creator>Ehren Metcalfe</dc:creator>
		<pubDate>Sat, 08 Aug 2009 23:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1357</guid>
		<description>the command curl -X POST -d saved my life! I previously couldn&#039;t manually POST to an RPX api function (now I can). Thanks a lot!</description>
		<content:encoded><![CDATA[<p>the command curl -X POST -d saved my life! I previously couldn&#8217;t manually POST to an RPX api function (now I can). Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roshanallan</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1341</link>
		<dc:creator>roshanallan</dc:creator>
		<pubDate>Sun, 03 May 2009 22:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1341</guid>
		<description>Brian,
You need to encode the &quot;&amp;&quot; sign since it&#039;s part of the &quot;url&quot; query parameter. In this case, &quot;%26&quot;. You need to do this since &quot;&amp;&quot; is treated as a query parameter separator.

So the example would look like:
curl -d &quot;url=http://www.prh.noaa.gov/ptwc/?region=1%26id=pacific.2009.04.18.193652&quot; http://tinyurl.com/api-create.php

Output tiny url: http://tinyurl.com/c6tu9n

Another example:
$ curl -d &quot;url=http://www.prh.noaa.gov/ptwc/?region=1%26id=pacific.2009.04.18.193652&quot; http://api.tr.im/api/trim_simple

Output: http://tr.im/knmk

HTH,
RAS</description>
		<content:encoded><![CDATA[<p>Brian,<br />
You need to encode the &#8220;&#038;&#8221; sign since it&#8217;s part of the &#8220;url&#8221; query parameter. In this case, &#8220;%26&#8243;. You need to do this since &#8220;&#038;&#8221; is treated as a query parameter separator.</p>
<p>So the example would look like:<br />
curl -d &#8220;url=http://www.prh.noaa.gov/ptwc/?region=1%26id=pacific.2009.04.18.193652&#8243; <a href="http://tinyurl.com/api-create.php" rel="nofollow">http://tinyurl.com/api-create.php</a></p>
<p>Output tiny url: <a href="http://tinyurl.com/c6tu9n" rel="nofollow">http://tinyurl.com/c6tu9n</a></p>
<p>Another example:<br />
$ curl -d &#8220;url=http://www.prh.noaa.gov/ptwc/?region=1%26id=pacific.2009.04.18.193652&#8243; <a href="http://api.tr.im/api/trim_simple" rel="nofollow">http://api.tr.im/api/trim_simple</a></p>
<p>Output: <a href="http://tr.im/knmk" rel="nofollow">http://tr.im/knmk</a></p>
<p>HTH,<br />
RAS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1339</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 02 May 2009 21:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1339</guid>
		<description>I&#039;ve been trying to use cURL to access a URL-shortening API like TinyURL, bit.ly, or tr.im.  My problem for all three of these is that I need to pass it a long URL that contains multiple parameters itself, e.g., 

curl -d &quot;url=http://www.prh.noaa.gov/ptwc/?region=1&amp;id=pacific.2009.04.18.193652&quot; http://tinyurl.com/api-create.php

curl -d &quot;url=http://www.prh.noaa.gov/ptwc/?region=1&amp;id=pacific.2009.04.18.193652&quot; http://api.tr.im/api/trim_simple

The result is always the same: it truncates the long url at the &amp; (therefore only using the first argument, region, instead of both, region and id).

Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to use cURL to access a URL-shortening API like TinyURL, bit.ly, or tr.im.  My problem for all three of these is that I need to pass it a long URL that contains multiple parameters itself, e.g., </p>
<p>curl -d &#8220;url=http://www.prh.noaa.gov/ptwc/?region=1&amp;id=pacific.2009.04.18.193652&#8243; <a href="http://tinyurl.com/api-create.php" rel="nofollow">http://tinyurl.com/api-create.php</a></p>
<p>curl -d &#8220;url=http://www.prh.noaa.gov/ptwc/?region=1&amp;id=pacific.2009.04.18.193652&#8243; <a href="http://api.tr.im/api/trim_simple" rel="nofollow">http://api.tr.im/api/trim_simple</a></p>
<p>The result is always the same: it truncates the long url at the &amp; (therefore only using the first argument, region, instead of both, region and id).</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Restlet with Spring &#171; Jgoday&#8217;s Blog</title>
		<link>http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/comment-page-1/#comment-1331</link>
		<dc:creator>Restlet with Spring &#171; Jgoday&#8217;s Blog</dc:creator>
		<pubDate>Fri, 10 Apr 2009 09:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.plexibus.com/?p=29#comment-1331</guid>
		<description>[...] We can use curl to make a rest request (http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/) [...]</description>
		<content:encoded><![CDATA[<p>[...] We can use curl to make a rest request (<a href="http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/" rel="nofollow">http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/</a>) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.220 seconds -->
