how to use python requests on server code example
Example 1: how to send get request python
import requests
requests.get("https://www.google.com/")
Example 2: python print return code of requests
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404