[PyAR2] POST with Python?

W W srilyk at gmail.com
Fri Jan 25 18:40:03 CET 2008


Ahah! I found out. Quite simple, really

params = urllib.urlencode({'name': 'Bob'})
post = urllib.urlopen('www.site.com/page.php')
post = post.read()

And that's all she needs!
-Wayne

On Jan 25, 2008 11:31 AM, W W <srilyk at gmail.com> wrote:

> It appears possible, though it looks like any solution I've seen is too
> convoluted for what I want (maybe not though)
>
> basically, I want to use the POST method to request data from a server.
>
> instead of www.site.com/page.php?name=Bob (the GET fashion)
> I want to be able to use the POST method.
>
> Any help would be great! Thanks!
> -Wayne
>
> --
> To be considered stupid and to be told so is more painful than being
> called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every
> weakness, every vice, has found its defenders, its rhetoric, its ennoblement
> and exaltation, but stupidity hasn't. - Primo Levi




-- 
To be considered stupid and to be told so is more painful than being called
gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness,
every vice, has found its defenders, its rhetoric, its ennoblement and
exaltation, but stupidity hasn't. - Primo Levi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/mailman/private/pyar2/attachments/20080125/f3ba4b71/attachment.htm 


More information about the PyAR2 mailing list