Re: socket connetion to url with port 80

2006-04-04 Thread John J. Lee
"Sakcee" <[EMAIL PROTECTED]> writes: > I got the response using s.send("GET / HTTP/1.0\r\n\r\n"), > > but this socket is being blocked by squid server that we have installed > in our socket. You don't have squid installed "in your socket". You have it installed on a computer. Going through squ

Re: socket connetion to url with port 80

2006-04-04 Thread Sakcee
thanks for the help I got the response using s.send("GET / HTTP/1.0\r\n\r\n"), but this socket is being blocked by squid server that we have installed in our socket. do you know how can i configure the squid to stop blocking the socket thanks -- http://mail.python.org/mailman/listinfo/python-l

Re: socket connetion to url with port 80

2006-04-04 Thread Rene Pijlman
Sakcee: >how can i get page response from a site e.g. google.com port 80 [...] >can i do at socket level? Yes, but you'll need to implement HTTP: http://www.ietf.org/rfc/rfc2616.txt -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list

Re: socket connetion to url with port 80

2006-04-04 Thread Fredrik Lundh
"Sakcee" wrote: > this is really a stupid question, how can i get page rsponse from a > site e.g. google.com port 80 > form socket, can i do something > > import socket > s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) > s.connect( ( "www.google.com", 80 ) ) > s.send( "Hello" ) # GET?? >

socket connetion to url with port 80

2006-04-04 Thread Sakcee
Hi this is really a stupid question, how can i get page rsponse from a site e.g. google.com port 80 form socket, can i do something import socket s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) s.connect( ( "www.google.com", 80 ) ) s.send( "Hello" ) # GET?? response = s.recv(8048) print