http.client python proxy code example
Example 1: python requests get proxy
import requests
proxies = { "http": "http://10.10.10.10:8000",
"https": "https://10.10.10.10:8000"
}
r = requests.get("http://toscrape.com", proxies=proxies)
Example 2: http client post python
import requests
pload = {'username':'Olivia','password':'123'}
r = requests.post('https://httpbin.org/post',data = pload)
print(r.text)