I'm using urllib2's urlopen function to post to a service which should return a rather lengthy JSON object as the body of its response. Here's the code:
{{{ ctype, body = encode_multipart(fields, files) url = 'http://someservice:8080/path/to/resource' headers = {'Content-Type': ctype, 'Content-Length': str(len(body))} req = urllib2.Request(url, body, headers) resp = urllib2.urlopen(req) resp_body = resp.read() }}} When I try to look at "resp_body" I get this error: IOError: [Errno 35] Resource temporarily unavailable I posted to the same URI using curl and it worked fine, so I don't think it has to do with the server. Any thoughts? -- http://mail.python.org/mailman/listinfo/python-list