Forum: Ruby Net::HTTP.get_response - No Response

7070c0ca59124b4d96dd27ea52ad359e?d=identicon&s=25 Jeff Bowen (jabowen)
on 2011-03-30 15:40
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-Compl...)
responce = Net::HTTP.get_response(url)
holder = responce.body
puts responce

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


Thanks
Jeff
197480de020954041de6366056d080c5?d=identicon&s=25 Michael Edgar (Guest)
on 2011-03-30 16:29
(Received via mailing list)
http://www.quibids.com/ is down, at least from my location.

Michael Edgar
adgar@carboni.ca
http://carboni.ca/
161289732b5b8c9dcb5834a3f0535340?d=identicon&s=25 Chad Perrin (Guest)
on 2011-03-30 17:08
(Received via mailing list)
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?
7070c0ca59124b4d96dd27ea52ad359e?d=identicon&s=25 Jeff Bowen (jabowen)
on 2011-03-30 17:21
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.
161289732b5b8c9dcb5834a3f0535340?d=identicon&s=25 Chad Perrin (Guest)
on 2011-03-30 21:51
(Received via mailing list)
On Thu, Mar 31, 2011 at 12:25:22AM +0900, Jeff Bowen wrote:
>
> 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.

So . . . has quibids.com changed -- or vanished?
753dcb78b3a3651127665da4bed3c782?d=identicon&s=25 Brian Candler (candlerb)
on 2011-03-30 22:36
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-Compl...)
> 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.
753dcb78b3a3651127665da4bed3c782?d=identicon&s=25 Brian Candler (candlerb)
on 2011-03-30 22:39
> From here I get no response - looks like the site is hanging.

Eventually I get this:

HTTP/1.0 504 Gateway Time-out
Date: Wed, 30 Mar 2011 20:37:22 GMT
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-transitiona...
<!--$Id: imerr504.html,v 1.2 2007/11/29 09:34:56 gcattell Exp $-->
<html xmlns="http://www.w3.org/1999/xhtml">
<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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.