From: Michael Gorsuch Date: 2007-04-08T06:28:51+09:00 Subject: Re: Trying to GET google with socket....problem OK, so you are getting a response back from the server. I have no idea why you're getting a redirect from them, but you are getting a proper response over your socket. On Sun, Apr 08, 2007 at 05:53:26AM +0900, Hey You wrote: > Michael Gorsuch wrote: > > I just ran this code in irb, and it worked without issue. > > > > Can you provide the specific exception or unexpected results? > Well I just ran the code and got this: > > HTTP/1.0 302 Found > > Location: http://www.google.ca/index.html > > Cache-Control: private > > Set-Cookie: > PREF=ID=e20f9edec5958042:TM=1175979001:LM=1175979001:S=shwmC1m6Amdg20nV; > expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com > > Content-Type: text/html > > Server: GWS/2.1 > > Content-Length: 228 > > Date: Sat, 07 Apr 2007 20:50:01 GMT > > Connection: Keep-Alive > > > > content="text/html;charset=utf-8"> > 302 Moved >

302 Moved

> The document has moved > here. > > > > Also I would like to stick to using sockets instead of other HTTP > clients :). > > -- > Posted via http://www.ruby-forum.com/. >