Re: Trying to GET google with socket....problem



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



<HTML><HEAD><meta http-equiv="content-type"
content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.ca/index.html";>here</A>.

</BODY></HTML>

Also I would like to stick to using sockets instead of other HTTP
clients :).

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

.



Relevant Pages

  • RE: application for an employment
    ... them private and not public. ... vulnerabilities requires that a connection is made in most instances. ... and standards that apply to the profession would not allow this type of ... that the server was listening on 135/139 TCP. ...
    (Security-Basics)
  • Re: cant seem to button down SMTP settings
    ... My concern is that my SMTP connection is open to all ... ALL UNASSIGNED (a private IP and a Public translation) If I use just ... SMTP server will bind. ... If you aren't using any spam filters, ...
    (microsoft.public.exchange.admin)
  • Re: Database connection from PDA over cradle
    ... As a heads up when I try and hit the server with the name it can't find it ... Does it work if you use the ip address for the database instead of the ... Private myDS As New DataSet ... System.Data.SqlClient and in the connectionstring of your connection you ...
    (microsoft.public.pocketpc.developer)
  • Re: NLB with 2 NICs question
    ... >>> I have 2 Servers set up with NLB with 2 NIC on each server. ... It is called my Private Connection. ... >>> When I stop one server (using the Network Load Balancing Manager), ...
    (microsoft.public.windows.server.clustering)
  • Re: Two NICs in one 2000 server
    ... LAN by giving private IP address. ... I have Windows 2000 Server which has two Network cards. ... All users connect to the Internet VIA PIX firewall, ... Ethernet adapter Local Area Connection 2: ...
    (microsoft.public.win2000.networking)