I have a REST url like:
url='http://xx.xx.xx.xx/server/rest/line/125'
I can get correct return json by command curl, like this:
curl -i http://xx.xx.xx.xx/server/rest/line/125
But when i use Python3 requests, it allways return 404, Python code:
import requests
resp = requests.get(r'http://xx.xx.xx.xx/server/rest/line/125')
print(resp.status_code)
Anyone can tell me the problem? Is the server block the request?