<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - A call to arms for Ruby HTTP client programmers - Comments</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers</link>
 <description>Comments for &quot;A call to arms for Ruby HTTP client programmers&quot;</description>
 <language>en</language>
<item>
 <title>Hmmm</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-40384</link>
 <description>&lt;p&gt;This comment thread still running?  I had some questions about it.&lt;/p&gt;</description>
 <pubDate>Thu, 25 Feb 2010 14:17:26 -0600</pubDate>
 <dc:creator>EFT Tapping</dc:creator>
 <guid isPermaLink="false">comment 40384 at http://www.townx.org</guid>
</item>
<item>
 <title>A good REST client is a good HTTP client</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-39815</link>
 <description>&lt;p&gt;Take a look at &lt;a href=&quot;http://github.com/kaiwren/wrest/examples&quot; title=&quot;http://github.com/kaiwren/wrest/examples&quot;&gt;http://github.com/kaiwren/wrest/examples&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I started this to replace Rails&#039; ActiveResource, which is atrocious. Along the way I realised that before I can have a good &lt;span class=&quot;caps&quot;&gt;REST &lt;/span&gt;client, I need a good &lt;span class=&quot;caps&quot;&gt;HTTP &lt;/span&gt;client and Wrest is my attempt to do this. Do try it - I&#039;m looking for feedback on how to improve it :)&lt;/p&gt;</description>
 <pubDate>Tue, 18 Aug 2009 04:10:02 -0500</pubDate>
 <dc:creator>Sidu</dc:creator>
 <guid isPermaLink="false">comment 39815 at http://www.townx.org</guid>
</item>
<item>
 <title>You&#039;re welcome. You might</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-39002</link>
 <description>&lt;p&gt;You&#039;re welcome. You might want to look at &lt;span class=&quot;caps&quot;&gt;HTTP&lt;/span&gt;arty as well. I still think there&#039;s room for a more complete Ruby client implementation.&lt;/p&gt;</description>
 <pubDate>Fri, 20 Mar 2009 16:57:06 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 39002 at http://www.townx.org</guid>
</item>
<item>
 <title>Thanks</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-38996</link>
 <description>&lt;p&gt;Thanks for the above referece (comment above) as I am new to httpclient writing. Wow, this is an old post and it took me forever to find this info too. Glad I did. By the way, I love the blog post title, &quot;no tech please, we&#039;re British&quot; lmao! &lt;/p&gt;

&lt;p&gt;Thomas&lt;/p&gt;</description>
 <pubDate>Thu, 19 Mar 2009 18:33:30 -0500</pubDate>
 <dc:creator>Thomas</dc:creator>
 <guid isPermaLink="false">comment 38996 at http://www.townx.org</guid>
</item>
<item>
 <title>Thank you!</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-38373</link>
 <description>&lt;p&gt;I need that, as I am pretty new to writing &lt;span class=&quot;caps&quot;&gt;HTTP &lt;/span&gt;client code. Thanks!&lt;/p&gt;</description>
 <pubDate>Thu, 07 Aug 2008 10:42:31 -0500</pubDate>
 <dc:creator>Mr. Coach Shoes</dc:creator>
 <guid isPermaLink="false">comment 38373 at http://www.townx.org</guid>
</item>
<item>
 <title>Thanks for the reference.</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-34386</link>
 <description>&lt;p&gt;Thanks for the reference. I&#039;ll check it out next time I&#039;m writing &lt;span class=&quot;caps&quot;&gt;HTTP &lt;/span&gt;client code in Ruby.&lt;/p&gt;</description>
 <pubDate>Thu, 17 Apr 2008 18:19:01 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 34386 at http://www.townx.org</guid>
</item>
<item>
 <title>Here&#039;s a recent useful</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-26736</link>
 <description>&lt;p&gt;Here&#039;s a recent useful library:  &lt;a href=&quot;http://raa.ruby-lang.org/project/httpclient/&quot; title=&quot;http://raa.ruby-lang.org/project/httpclient/&quot;&gt;http://raa.ruby-lang.org/project/httpclient/&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Sun, 23 Mar 2008 21:19:24 -0500</pubDate>
 <dc:creator>jkolyer</dc:creator>
 <guid isPermaLink="false">comment 26736 at http://www.townx.org</guid>
</item>
<item>
 <title>Thanks for the reference,</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-14265</link>
 <description>&lt;p&gt;Thanks for the reference, looks well worth investigating.&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jul 2007 03:39:33 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14265 at http://www.townx.org</guid>
</item>
<item>
 <title>Probably too late, but - simplehttp</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-14264</link>
 <description>&lt;p&gt;If this comment does nothing else but lead googlers to simplehttp, then it has served its purpose:&lt;br /&gt;
  &lt;a href=&quot;http://rubyforge.org/projects/simplehttp/&quot; title=&quot;http://rubyforge.org/projects/simplehttp/&quot;&gt;http://rubyforge.org/projects/simplehttp/&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jul 2007 01:22:01 -0500</pubDate>
 <dc:creator>Jason King</dc:creator>
 <guid isPermaLink="false">comment 14264 at http://www.townx.org</guid>
</item>
<item>
 <title>Glad you like the title</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-14137</link>
 <description>&lt;p&gt;Glad you like the title :)&lt;/p&gt;

&lt;p&gt;Thanks for the RFuzz reference and pointer to usage examples. It looks quite similar to what I started with my own client library, though RFuzz is still alive while my library has died a death. Definitely a good one to keep in mind.&lt;/p&gt;</description>
 <pubDate>Tue, 15 May 2007 05:09:57 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14137 at http://www.townx.org</guid>
</item>
<item>
 <title>RFuzz</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-14136</link>
 <description>&lt;p&gt;I keep coming back to this thread, because the subject line is so compelling in the Google results...&lt;/p&gt;

&lt;p&gt;Zed Shaw has a &lt;a href=&quot;http://rfuzz.rubyforge.org/&quot;&gt;Ruby &lt;span class=&quot;caps&quot;&gt;HTTP &lt;/span&gt;client library called RFuzz.&lt;/a&gt; It just solved my woes. For usage examples try this link: &lt;a href=&quot;http://rfuzz.rubyforge.org/sample.html&quot; title=&quot;http://rfuzz.rubyforge.org/sample.html&quot;&gt;http://rfuzz.rubyforge.org/sample.html&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 15 May 2007 02:37:08 -0500</pubDate>
 <dc:creator>Chris Anderson</dc:creator>
 <guid isPermaLink="false">comment 14136 at http://www.townx.org</guid>
</item>
<item>
 <title>By the way, you didn&#039;t</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-11081</link>
 <description>&lt;p&gt;By the way, you didn&#039;t provide a link to your library. Is it publically available?&lt;/p&gt;</description>
 <pubDate>Mon, 09 Oct 2006 10:20:39 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 11081 at http://www.townx.org</guid>
</item>
<item>
 <title>Thanks, Thoran. I haven&#039;t</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-11080</link>
 <description>&lt;p&gt;Thanks, Thoran. I haven&#039;t done much with &lt;span class=&quot;caps&quot;&gt;WAML &lt;/span&gt;recently, as I ended up not using it very much. It&#039;s a topic I keep returning to every now and then. I&#039;m not so much interested in spidering as in screen scraping: my original impetus was converting &lt;span class=&quot;caps&quot;&gt;HTML &lt;/span&gt;pages to &lt;span class=&quot;caps&quot;&gt;RSS &lt;/span&gt;feeds so I didn&#039;t have to keep visiting RubyForge to track project statistics. I also wrote some parse code, but I relied on &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; Tidy to make the pages tractable, then used XPath to do my querying. I also did some regular expression matching stuff, but this is more brittle than XPath. I keep meaning to look at HPricot but I haven&#039;t got round to it yet.&lt;/p&gt;</description>
 <pubDate>Mon, 09 Oct 2006 10:20:15 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 11080 at http://www.townx.org</guid>
</item>
<item>
 <title>Me Too!</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-11079</link>
 <description>&lt;p&gt;I&#039;ve written something called Redback which is more focussed on spidering, which I think is what you are after.  It doesn&#039;t do X/HTML parsing though.  It was my intention to incorporate this.  Presently it uses a regex for link discovery.  It was designed to be lean and mean: from memory it is about 50 or so &lt;span class=&quot;caps&quot;&gt;LOC. &lt;/span&gt; It has some cute features like recognizing duplicate &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt;s, optional depth-first or breadth-first as well as forcing https.  I want to implement depth restrictions, total page get restrictions, ala wget and curl, but with the flexibility of Ruby.  Let me know if it is of any use...  Also, note that I&#039;ve used Mechanize a few times (today even) and while it is decidedly slower because of the overhead of all those objects I suspect, it is very well put together.  I wrote Redback in spite of knowing about Mechanize because I (mistakenly?) thought that it wasn&#039;t focussed on spidering but automating more complex actions.  It certainly is possible to spider with Mechanize but I believe that most of the code to be written for this still has to be written to manage the process, which is what Redback already does.  I had considered incorporating Mechanize (especially now that it incorporates Hpricot) for structural link detection and for structured extraction, and may yet do so.  &lt;/p&gt;</description>
 <pubDate>Mon, 09 Oct 2006 09:04:28 -0500</pubDate>
 <dc:creator>thoran</dc:creator>
 <guid isPermaLink="false">comment 11079 at http://www.townx.org</guid>
</item>
<item>
 <title>Cheers</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comment-1425</link>
 <description>&lt;p&gt;Thanks for that, Greg. Interesting, as it sort of emulates a person clicking through a site. The stuff I&#039;ve written works similarly, but is more focused on scraping and building new representations from the scrape. It&#039;s also pretty simple compared to Mechanize. But I will investigate further and may well switch.&lt;/p&gt;</description>
 <pubDate>Wed, 05 Jul 2006 04:28:41 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 1425 at http://www.townx.org</guid>
</item>
<item>
 <title>A call to arms for Ruby HTTP client programmers</title>
 <link>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers</link>
 <description>&lt;p&gt;Can anyone recommend me an &lt;span class=&quot;caps&quot;&gt;HTTP &lt;/span&gt;client library for Ruby? I know about Net::HTTP, but that&#039;s pretty low level: I&#039;m looking for something like Apache Commons &lt;span class=&quot;caps&quot;&gt;HTTPC&lt;/span&gt;lient. I&#039;ve written my own, but it&#039;s primitive. I basically need stuff like:&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;Following redirections automatically (to some pre-specified depth)&lt;/li&gt;
&lt;li&gt;Automatically attaching cookies to requests (my current code does this, but not on a per-host basis, and not respecting cookie expirations, paths, secure etc.)&lt;/li&gt;
&lt;li&gt;Enable me to parse &lt;span class=&quot;caps&quot;&gt;HTML, &lt;/span&gt;tidy it, and extract parts of it&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;If there&#039;s nothing out there, I&#039;ll carry on building my own (codenamed: &lt;span class=&quot;caps&quot;&gt;WAML &lt;/span&gt;[Web Automation Macro Language]). But it would be interesting to find out if anyone else is working on this already before I go too far.&lt;/p&gt;</description>
 <comments>http://www.townx.org/blog/elliot/a_call_to_arms_for_ruby_http_client_programmers#comments</comments>
 <category domain="http://www.townx.org/tech">tech</category>
 <pubDate>Mon, 03 Jul 2006 17:31:42 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">344 at http://www.townx.org</guid>
</item>
</channel>
</rss>

