http.client python code example
Example 1: simple http server python
python -m SimpleHTTPServer 8080
Example 2: http.server python
python -m http.server 8000
Example 3: http client post python
import requests
pload = {'username':'Olivia','password':'123'}
r = requests.post('https://httpbin.org/post',data = pload)
print(r.text)
Example 4: http.server python
python3 -m http.server