Help-log in to a web page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Help-log in to a web page

From: Murugesh <appumail@gmail.com>
Date: Thu Oct 06 2005 - 10:48:01 CEST

Hi all,
I'm a newbie to python.I need to login to a webpage after supplying
usename and password.

import urllib
sock = urllib.urlopen("http://xop-pc.main.com")
htmlSource = sock.read()
sock.close()
print htmlSource

In the above code how can i supply username and password to that URL.
Thanks for you time.

Thanks
Amen.
Received on Sat Oct 15 04:12:41 2005