SyntaxFix
Write A Post
Hire A Developer
Questions
Try this instead:
url = 'http://myserver/post_service' data = urllib.urlencode({'name' : 'joe', 'age' : '10'}) req = urllib2.Request(url=url,data=data) content = urllib2.urlopen(req).read() print content