Python Forum
No route to host error when using requests.post in python on raspberry pi - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: No route to host error when using requests.post in python on raspberry pi (/thread-7360.html)



No route to host error when using requests.post in python on raspberry pi - mariummalik22 - Jan-06-2018

I am trying to send post request to URL from raspberry pi but I am getting Errno 113: No route to host error.
My code is:
Code: Select all

import requests
>>> r = requests.post("http://alnnovative.com/security.php", data="marium")
I created a stack trace log file which I have uploaded here: https://www.dropbox.com/s/xeomg3vrnxnmz0b/log.txt?dl=0
Can someone figure out the issue?