Net::HTTP.get_response - No Response

This was working but stopped. I've made no upgrades to my system.

The code is:
require 'net/http'

url =
URI.parse("http://www.quibids.com/categories/1-Recently-Completed/")
responce = Net::HTTP.get_response(url)
holder = responce.body
puts responce

The output is:
#<Net::HTTPFound:0xfe8db8>

Thanks
Jeff

···

--
Posted via http://www.ruby-forum.com/.

http://www.quibids.com/ is down, at least from my location.

Michael Edgar
adgar@carboni.ca
http://carboni.ca/

···

On Mar 30, 2011, at 9:45 AM, Jeff Bowen wrote:

This was working but stopped. I've made no upgrades to my system.

The code is:
require 'net/http'

url =
URI.parse("http://www.quibids.com/categories/1-Recently-Completed/&quot;\)
responce = Net::HTTP.get_response(url)
holder = responce.body
puts responce

The output is:
#<Net::HTTPFound:0xfe8db8>

Thanks
Jeff

--
Posted via http://www.ruby-forum.com/\.

Has http://www.quibids.com changed?

Also . . . I'm not entirely clear on whether the output you provided is
meant to indicate what you get *now* that it doesn't "work", or what you
got *before* when it did "work". Is that the expected output, or the
unexpected output you get now? If it's expected -- what do you get now?
If it's what you get now -- what did you get before?

···

On Wed, Mar 30, 2011 at 10:45:39PM +0900, Jeff Bowen wrote:

This was working but stopped. I've made no upgrades to my system.

The code is:
require 'net/http'

url =
URI.parse("http://www.quibids.com/categories/1-Recently-Completed/&quot;\)
responce = Net::HTTP.get_response(url)
holder = responce.body
puts responce

The output is:
#<Net::HTTPFound:0xfe8db8>

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

Jeff Bowen wrote in post #989974:

This was working but stopped. I've made no upgrades to my system.

The code is:
require 'net/http'

URI.parse("http://www.quibids.com/categories/1-Recently-Completed/&quot;\)
responce = Net::HTTP.get_response(url)
holder = responce.body
puts responce

The output is:
#<Net::HTTPFound:0xfe8db8>

That's a redirect (302).

To test without Ruby:

telnet www.quibids.com 80
GET /categories/1-Recently-Completed/ HTTP/1.0
Host: www.quibids.com
<Blank line>

From here I get no response - looks like the site is hanging.

···

--
Posted via http://www.ruby-forum.com/\.

Chad Perrin wrote in post #989995:

···

On Wed, Mar 30, 2011 at 10:45:39PM +0900, Jeff Bowen wrote:

The output is:
#<Net::HTTPFound:0xfe8db8>

Has http://www.quibids.com changed?

Also . . . I'm not entirely clear on whether the output you provided is
meant to indicate what you get *now* that it doesn't "work", or what you
got *before* when it did "work". Is that the expected output, or the
unexpected output you get now? If it's expected -- what do you get now?
If it's what you get now -- what did you get before?

It the past I received the body (or code) of the webpage, which I then
ran though my filters and then enterd the filtered data into my DB.

--
Posted via http://www.ruby-forum.com/\.

From here I get no response - looks like the site is hanging.

Eventually I get this:

HTTP/1.0 504 Gateway Time-out
Content-Type: text/html
Connection: close
Content-Length: 1109

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
<!--$Id: imerr504.html,v 1.2 2007/11/29 09:34:56 gcattell Exp $-->
<html xmlns="http://www.w3.org/1999/xhtml&quot;&gt;
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Bad request</title></head>
<body
text="#000000" bgcolor="#FFFFFF" link="#770000" vlink="#050505"
alink="#111111">
<!-- DELETE THIS LINE
    <center>
    <h1>&lt;your organization here&gt; WORLD WIDE WEB SITE</h1>
    </center>
DELETE THIS LINE -->
<hr/>
<center>
<h2>HTTP Error 504: Gateway Timeout</h2>
<br/>
The server, while acting as a gateway or proxy, did not receive a timely
response from the upstream server it accessed in attempting to complete
the request.
</center>
<hr/>
<!-- DELETE THIS LINE
    <p>If you think this server is not responding properly or if you
    have question or suggestions please send mail to <a
    href="mailto:&lt;your webmaster's e-mail address here&gt;">&lt;your
    webmaster's e-mail address here&gt;</a>
    </p>
DELETE THIS LINE -->
</body></html>

So basically: broken site. And one which wasn't even properly set up in
the first place.

···

Date: Wed, 30 Mar 2011 20:37:22 GMT

--
Posted via http://www.ruby-forum.com/\.

So . . . has quibids.com changed -- or vanished?

···

On Thu, Mar 31, 2011 at 12:25:22AM +0900, Jeff Bowen wrote:

Chad Perrin wrote in post #989995:
>
> Has http://www.quibids.com changed?
>
> Also . . . I'm not entirely clear on whether the output you provided
> is meant to indicate what you get *now* that it doesn't "work", or
> what you got *before* when it did "work". Is that the expected
> output, or the unexpected output you get now? If it's expected --
> what do you get now? If it's what you get now -- what did you get
> before?

It the past I received the body (or code) of the webpage, which I then
ran though my filters and then enterd the filtered data into my DB.

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]