Hello,
I wrote this piece of code: http://pastebin.com/m138ec5e4
I was looking at the examples posted on:
The problem seems to be that google is somehow redirecting and net
http isn’t following. Is this known behaviour? If so is there a way
around it?
Thank you,
Jayanth
On 6/6/08, Srijayanth S. [email protected] wrote:
Thank you,
Jayanth
The documentation for Net::HTTP
(http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html) has a
section on following redirects. That might be of interest.
On Jun 6, 2008, at 10:08 AM, Per Christian Viken wrote:
around it?
Thank you,
Jayanth
The documentation for Net::HTTP
(http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html) has a
section on following redirects. That might be of interest.
If you want automatic following of redirects, perhaps you want the
httpclient gem rather than Net::HTTP directly. With Net::HTTP, you’d
have to recognize and follow the redirect explicitly.
-Rob
Rob B. http://agileconsultingllc.com
[email protected]