<?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: Custom HTTPS POST queries in Ruby</title>
	<atom:link href="http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/</link>
	<description>Random pieces of code, thoughts and movie reviews</description>
	<lastBuildDate>Wed, 25 Jan 2012 22:45:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Mike Byers</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-52547</link>
		<dc:creator>Mike Byers</dc:creator>
		<pubDate>Sun, 17 Oct 2010 18:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-52547</guid>
		<description>Thanks for this.  This is exactly what I needed to complete a project.  Glad to see the guy who recommended mechanize thanked you first.  I prefer this solution because it does not require the installation of yet another gem or plugin.  I don&#039;t see where using mechanize for this task would buy me much.  Certainly not enough to justify having to manage another gem or plugin,</description>
		<content:encoded><![CDATA[<p>Thanks for this.  This is exactly what I needed to complete a project.  Glad to see the guy who recommended mechanize thanked you first.  I prefer this solution because it does not require the installation of yet another gem or plugin.  I don&#8217;t see where using mechanize for this task would buy me much.  Certainly not enough to justify having to manage another gem or plugin,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Goscicki</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-51401</link>
		<dc:creator>Paul Goscicki</dc:creator>
		<pubDate>Wed, 16 Sep 2009 18:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-51401</guid>
		<description>@Marc: you need a httpd for that.</description>
		<content:encoded><![CDATA[<p>@Marc: you need a httpd for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-51400</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Wed, 16 Sep 2009 08:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-51400</guid>
		<description>I have the same question as pradeepta : the problem is not how to send data via POST or GET but how to get back the info via POST or GET. I have a form with an input file for a upload in HTML tags. The file is sent by GET method. How do I get the file back to process it ?</description>
		<content:encoded><![CDATA[<p>I have the same question as pradeepta : the problem is not how to send data via POST or GET but how to get back the info via POST or GET. I have a form with an input file for a upload in HTML tags. The file is sent by GET method. How do I get the file back to process it ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pradeepta</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-50588</link>
		<dc:creator>pradeepta</dc:creator>
		<pubDate>Fri, 04 Jan 2008 14:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-50588</guid>
		<description>Hi, I am trying to post form data from a jsp page which is using http method GET . How can I use it and get response .</description>
		<content:encoded><![CDATA[<p>Hi, I am trying to post form data from a jsp page which is using http method GET . How can I use it and get response .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avishai</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-33066</link>
		<dc:creator>Avishai</dc:creator>
		<pubDate>Tue, 10 Jul 2007 13:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-33066</guid>
		<description>Wow, this turns out to be _extremely_ helpful!!! I WWW::Mechanize takes care of all the dirty work for you. I was able to use it to construct a pseudo-API to a site that doesnt have one</description>
		<content:encoded><![CDATA[<p>Wow, this turns out to be _extremely_ helpful!!! I WWW::Mechanize takes care of all the dirty work for you. I was able to use it to construct a pseudo-API to a site that doesnt have one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2006-10-27 &#171; Bloggitation</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-7569</link>
		<dc:creator>links for 2006-10-27 &#171; Bloggitation</dc:creator>
		<pubDate>Fri, 27 Oct 2006 00:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-7569</guid>
		<description>[...] Custom HTTPS POST queries in Ruby (tags: ruby programming) [...]</description>
		<content:encoded><![CDATA[<p>[...] Custom HTTPS POST queries in Ruby (tags: ruby programming) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Goscicki</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-1602</link>
		<dc:creator>Paul Goscicki</dc:creator>
		<pubDate>Tue, 06 Jun 2006 17:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-1602</guid>
		<description>Sounds very interesting. I must try it out.</description>
		<content:encoded><![CDATA[<p>Sounds very interesting. I must try it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-1590</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 06 Jun 2006 00:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-1590</guid>
		<description>Was playing with that for awhile and then I just discovered &lt;a href=&quot;http://www.ntecs.de/blog/Blog/WWW-Mechanize.rdoc&quot; rel=&quot;nofollow&quot;&gt;WWW::Mechanize&lt;/a&gt;. Have you seen this thing? It&#039;s totally amazing. It was so easy, I took the liberty of rewriting your script using it like so:

require &#039;rubygems&#039;
require &#039;mechanize&#039;

agent = WWW::Mechanize.new
agent.user_agent_alias = &#039;Mac Safari&#039;

page = agent.get(&#039;http://profil.wp.pl/login.html&#039;)

form = page.forms[0]
form.fields.find{&#124;f&#124; f.name == &#039;login_username&#039;}.value = &quot;blah&quot;
form.fields.find{&#124;f&#124; f.name == &#039;login_password&#039;}.value = &quot;blah&quot;

page = agent.submit(form)
puts page.body
 

So easy! You can also turn on verbose logging by changing that first line to:
agent = WWW::Mechanize.new {&#124;a&#124; a.log = Logger.new(STDERR) }. Plus it does link-clicking and all kinds of other fancy stuff. It&#039;s the best thing since sliced-bread.</description>
		<content:encoded><![CDATA[<p>Was playing with that for awhile and then I just discovered <a href="http://www.ntecs.de/blog/Blog/WWW-Mechanize.rdoc" rel="nofollow">WWW::Mechanize</a>. Have you seen this thing? It&#8217;s totally amazing. It was so easy, I took the liberty of rewriting your script using it like so:</p>
<p>require &#8216;rubygems&#8217;<br />
require &#8216;mechanize&#8217;</p>
<p>agent = WWW::Mechanize.new<br />
agent.user_agent_alias = &#8216;Mac Safari&#8217;</p>
<p>page = agent.get(&#8216;http://profil.wp.pl/login.html&#8217;)</p>
<p>form = page.forms[0]<br />
form.fields.find{|f| f.name == &#8216;login_username&#8217;}.value = &#8220;blah&#8221;<br />
form.fields.find{|f| f.name == &#8216;login_password&#8217;}.value = &#8220;blah&#8221;</p>
<p>page = agent.submit(form)<br />
puts page.body</p>
<p>So easy! You can also turn on verbose logging by changing that first line to:<br />
agent = WWW::Mechanize.new {|a| a.log = Logger.new(STDERR) }. Plus it does link-clicking and all kinds of other fancy stuff. It&#8217;s the best thing since sliced-bread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Goscicki</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-1530</link>
		<dc:creator>Paul Goscicki</dc:creator>
		<pubDate>Sat, 03 Jun 2006 09:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-1530</guid>
		<description>It sould be fairly easy to combine my code with the redirect implementation from &lt;a href=&quot;http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_network.html#Net::FTP.welcome&quot; rel=&quot;nofollow&quot;&gt;ruby-doc&lt;/a&gt; (scroll down one screen).</description>
		<content:encoded><![CDATA[<p>It sould be fairly easy to combine my code with the redirect implementation from <a href="http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_network.html#Net::FTP.welcome" rel="nofollow">ruby-doc</a> (scroll down one screen).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://paulgoscicki.com/archives/2005/10/custom-https-queries-in-ruby/comment-page-1/#comment-1519</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Sat, 03 Jun 2006 08:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://paulgoscicki.com/?p=39#comment-1519</guid>
		<description>Hey, thanks for this, it&#039;s really useful! Was wondering if you knew of any conveneint way to follow redirects?</description>
		<content:encoded><![CDATA[<p>Hey, thanks for this, it&#8217;s really useful! Was wondering if you knew of any conveneint way to follow redirects?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

