Skip to main content

gabriele Domenichini's Library tagged programming   View Popular

23 May 08

urllib2 - The Missing Manual

import urllib
import urllib2

url = 'http://www.someserver.com/cgi-bin/register.cgi'
values = {'name' : 'Michael Foord',
'location' : 'Northampton',
'language' : 'Python' }

data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
the_page = response.read()

www.voidspace.org.uk/...urllib2.shtml - Preview

python web programming http library post

1 - 20 of 62 Next › Last »
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo