return req
opener = urllib.request.build_opener()
self.opener.add_handler(ChangeTypeProcessor())
response = opener.open('http://localhost:8000', json.dumps({'a': 'b'}))
Not possible to set content-type to application/json using urllib2