Basic Connection Example : Web Client : Network PYTHON examples


PYTHON examples » Network » Web Client »

 

Basic Connection Example


Basic Connection Example

import socket

print "Creating socket...",
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "done."

print "Connecting to www.navioo.com.",
s.connect(("www.navioo.com"80))
print "done."

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Network
» Web Client