![]() |
Python Client for an HTML Server
Hi,
I want to create a python client, that will receive and post messages to an HTML Webserver. I have found several articles on how to read html data, which i have been able to do. but i cant find any resources on how to trigger events for html, like pushing buttons. Can anyone help me out? :confused: |
If I'm not mistaken, you'll have to implement these python scripts on the server's side -- the side of a server that has mod_python or so running, moreover. Then you'll use an html/server module with python to print out the HTML data and forms, as well as process the data that the user sends.
However, I'm not too familiar with python, and even less so with python&html. |
Thanks but thats not what I want to do. Actually I have a networking device which is configured through its web interface. I want to automate the configuration. So I need to write a python script that would automatically load the config file to the network device through its webinterface.
So I need some python library that sends data back to the webinterface as well as retrieving it. |
Check out Python CGI. Comes as a built-in module so you don't ave to download anything else.
|
Quote:
You either want urllib or urllib2, depending on whether or not your web interface, like mine, uses basic HTTP authentication for the login box (do you get a popup that asks you for your username or password) or not. Tell me that and i'll point you in the right direction |
| All times are GMT -5. The time now is 2:00 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC