[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: How to access a web site with an authentication template.

Gabriel Genellina

3/17/2010 10:40:00 PM

En Wed, 17 Mar 2010 15:43:00 -0300, Anthra Norell
<anthra.norell@bluewin.ch> escribió:

> I understand that I can access password protected sites with urllib2.
> [...] a site I am dealing with, because the opening page does not
> require a password. It presents an id/password entry template and I have
> no clue how to respond in python. The page source is chock full of java
> script.

Use an HTTP sniffer (there are plenty) to see the actual request that is
sent to the server. Then emulate it using urllib2.

--
Gabriel Genellina