Net::HTTP.get_response - No Response

J

Jeff Bowen

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.
 
B

Brian Candler

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/")
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.
 
B

Brian Candler

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-transitional.dtd">
<!--$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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top