How would I implement my proxy into a request with http.client?

293 views Asked by At
headers = {
    'Authorization': 'Bearer '+jtw,
}
conn = http.client.HTTPSConnection("api.minecraftservices.com")
conn.request("PUT", "/minecraft/profile/name/"+user, headers=headers)
response = conn.getresponse()
status_code = response.status
resp = response.read().decode("utf-8")

^ My code Because http.client is not used much, I couldn't really find an answer on google. How would I add a proxy to this?

0

There are 0 answers