Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #1967 > unrolled thread
| Started by | Jeff Bowen <ja_bowen@yahoo.com> |
|---|---|
| First post | 2011-03-30 08:45 -0500 |
| Last post | 2011-03-30 15:39 -0500 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.ruby
Net::HTTP.get_response - No Response Jeff Bowen <ja_bowen@yahoo.com> - 2011-03-30 08:45 -0500
Re: Net::HTTP.get_response - No Response Michael Edgar <adgar@carboni.ca> - 2011-03-30 09:29 -0500
Re: Net::HTTP.get_response - No Response Jeff Bowen <ja_bowen@yahoo.com> - 2011-03-30 10:25 -0500
Re: Net::HTTP.get_response - No Response Brian Candler <b.candler@pobox.com> - 2011-03-30 15:36 -0500
Re: Net::HTTP.get_response - No Response Brian Candler <b.candler@pobox.com> - 2011-03-30 15:39 -0500
| From | Jeff Bowen <ja_bowen@yahoo.com> |
|---|---|
| Date | 2011-03-30 08:45 -0500 |
| Subject | Net::HTTP.get_response - No Response |
| Message-ID | <f0d3dfc94aee7e5b6b04ee74575232bd@ruby-forum.com> |
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/.
[toc] | [next] | [standalone]
| From | Michael Edgar <adgar@carboni.ca> |
|---|---|
| Date | 2011-03-30 09:29 -0500 |
| Message-ID | <0B0521A4-B5CB-43D3-BC25-BB9F354B5454@carboni.ca> |
| In reply to | #1967 |
[Note: parts of this message were removed to make it a legal post.]
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/")
> 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/.
>
[toc] | [prev] | [next] | [standalone]
| From | Jeff Bowen <ja_bowen@yahoo.com> |
|---|---|
| Date | 2011-03-30 10:25 -0500 |
| Message-ID | <f7e1b6df67c18e6cd87518a5764d3a79@ruby-forum.com> |
| In reply to | #1967 |
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/.
[toc] | [prev] | [next] | [standalone]
| From | Brian Candler <b.candler@pobox.com> |
|---|---|
| Date | 2011-03-30 15:36 -0500 |
| Message-ID | <a0f0bd0ab4d7b85463f05729772c9b06@ruby-forum.com> |
| In reply to | #1967 |
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.
--
Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | Brian Candler <b.candler@pobox.com> |
|---|---|
| Date | 2011-03-30 15:39 -0500 |
| Message-ID | <ab42362fe28e63a84f564995b23fa51d@ruby-forum.com> |
| In reply to | #1989 |
> 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><your organization here> 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:<your webmaster's e-mail address here>"><your
webmaster's e-mail address here></a>
</p>
DELETE THIS LINE -->
</body></html>
So basically: broken site. And one which wasn't even properly set up in
the first place.
--
Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web