Off-topic Internet Question

Ian Clarke I.Clarke at strs.co.uk
Wed Oct 13 10:30:19 EDT 1999


Yes, it can be done.  The Python script will need to pretend that it is
a web browser and submit the form information as a "cgi" request to the
web server on which the internet page resides.  It can do this by
opening a TCP socket to the web server.  You should read up on the HTTP
protocol (specifically the section on CGI) (and using sockets in
Python).  You will need to determine whether the web page in question
uses CGI GET or CGI POST.  CGI GET is easier to implement as you just
request a page appending the parameters to the end of the URL.  CGI POST
is a little more involved.

Ian.

> 
> Is it possible a Python script fill a internet page with arbitrary
> values, simulate the send button and get the results ?
> 
> Is it possible with Python ? What Do I need to know to make this ?
> 
> Thanks (a lot) in advance
> 
> Geraldo Lopes de Souza

--
Ian Clarke                        Email: I.Clarke at strs.co.uk
Homepage: http://www.gnu.demon.co.uk/
Also see: http://freenet.on.openprojects.net/
"All we see and all we seem is but a dream within a dream"




More information about the Python-list mailing list