My url is too long and it throws me the error:
ConnectionError: HTTPConnectionPool(host='xxxx', port=8086): Max retries exceeded with url: /user/profile?nick=nick&name=xxx&city=xxx&gender=x&profile_image=%FF%D8%FF%E0%00%10JFIF%00%01%01%01%00%60%00%60%00%00%...
I am uploading an image to a file iput and trying to pass it by requests.post but it throws me the error above.
My code is this:
profile_image = self.request.get("f_profile_image")
data = {"id": id_user,
"nick": nick,
"name": name,
"last_name": last_name,
"gender": gender,
"profile_image": profile_image}
d = requests.post("http://myhost:8086/user/profile",params=data)
self.response.out.write(d.text)
I get the picture here profile_image = self.request.get("f_profile_image") I sent from the form, and try to send it to my server for storage in a database. But d = requests.post("http://myhost:8086/user/profile",params=data) make the mistake I mentioned above