how-to POST form data to ASP pages?

Mike Meyer mwm at mired.org
Wed Dec 28 00:33:02 EST 2005


"livin" <livin@@cox.net> writes:
> Mike,
> I appreciate the help... I'm a noobie to Python. I know vbscript & jscript 
> but nothing else.
>
> I obviously do not need to submit the images
>
> my code looks like this but it is not working... any ideas?
>
>
>       params = urllib.urlencode({'action': 'hs.ExecX10ByName "Kitchen 
> Espresso Machine", "Off", 100'})
>       urllib.urlopen("http://192.168.1.11:80/hact/kitchen.asp", params)

No ideas. What does "not working" mean? Do you get a traceback from
Python? If so, share it - cause what I see here isn't legal Python. Do
you get an error message from the kitchen.asp form handler? If so,
...

        <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.




More information about the Python-list mailing list