Created
December 29, 2009 20:59
-
-
Save Mikoangelo/265597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mikael@maggie ~//Snow ☁ snow -i | |
gc: nursery is at 0x100300000 | |
snow> require("lib/socket") | |
attempting to load file: /Users/mikael/Projects/Snow/lib/socket | |
attempting to load file: /Users/mikael/Projects/Snow/lib/socket.sn | |
attempting to load file: /Users/mikael/Projects/Snow/lib/socket.so | |
loading dynamic library: Snow Socket I/O Library version 1 | |
Socket init called. | |
=> true | |
snow> s: Socket("66.102.9.103", 80) // 66.102.9.103 = Google | |
=> <Socket@0x1003156b0> | |
snow> s.send("GET / HTTP/1.1\n\n") | |
=> <Socket@0x1003156b0> | |
snow> s.receive(1024) | |
=> "HTTP/1.1 302 Found | |
Location: http://www.google.dk/ | |
Cache-Control: private | |
Content-Type: text/html; charset=UTF-8 | |
Set-Cookie: PREF=ID=a739d403674c1ea4:TM=1262119531:LM=1262119531:S=zhWKsBDbiv2X9U75; expires=Thu, 29-Dec-2011 20:45:31 GMT; path=/; domain=.google.com | |
Set-Cookie: NID=30=ARVMsYvStA3KiItAwjS78sxIXFg8eKlIo6c05iuzkvwKX4KRz6rmvXVK3_4fCidaf8olqzYlg4oU5PzV-DBbgOu9mJ7DdN1oNk_jzYoB_otkJysLhOgFdZCwoFuRmnmt; expires=Wed, 30-Jun-2010 20:45:31 GMT; path=/; domain=.google.com; HttpOnly | |
Date: Tue, 29 Dec 2009 20:45:31 GMT | |
Server: gws | |
Content-Length: 218 | |
X-XSS-Protection: 0 | |
<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.dk/">here</A>. | |
</BODY></HTML> | |
" | |
snow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment