send http request

Joonas Paalasmaa joonas at olen.to
Fri Jul 13 07:37:25 EDT 2001


raghu k rao wrote:
> 
> hi
> 
> how can i send a http request using POST method.
> Not just send request
> Like i want to login with username and passwd using the above method.
> 
> can anyone tell me a program for this

import urllib
file =
urllib.urlopen("http://spam.foo/post-form.cgi","user=spam&pass=foo").read()



More information about the Python-list mailing list