Re: Help-log in to a web page

2005-10-06 Thread Laszlo Zsolt Nagy
>> >> I tried to view the source,it has, >> >> >> src="/em/cabo/images /t.gif" height="80">> align="center" border="0" cellspacing="2" cellpadding="0">> id="username >> __xc_">> title="Required" class="xc">* *User Name> pan>> width="12">> id="username"

Re: Help-log in to a web page

2005-10-06 Thread Chris Dewin
On Thu, 06 Oct 2005 14:51:31 +0530, Murugesh wrote: > id="username" class="x4" onkeypress="return > _submitOnEnter(event, 'User');" name="j_username" size="30" > type="text" value="myadmin"> I'm a novice too. But that looks to me like a javascript method. At a guess, it probably

Re: Help-log in to a web page

2005-10-06 Thread Murugesh
Murugesh wrote: Laszlo Zsolt Nagy wrote: Murugesh wrote: 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()   

Re: Help-log in to a web page

2005-10-06 Thread Murugesh
Laszlo Zsolt Nagy wrote: Murugesh wrote: 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()

Re: Help-log in to a web page

2005-10-06 Thread Laszlo Zsolt Nagy
Murugesh wrote: >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() >pri

Help-log in to a web page

2005-10-06 Thread Murugesh
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