Created
May 7, 2016 20:00
-
-
Save yzguy/140a4b0064ea7a3ede2ca1f1348ab4bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# HTTP(S) proxy | |
# Through Fiddler | |
proxies = { | |
"http": "http://localhost:8080", | |
"https": "http://localhost:8080" | |
} | |
# Endpoint to make HTTP request to | |
endpoint = "" | |
# Headers to include with request | |
headers = { | |
} | |
# Parameters to send with request | |
payload = { | |
} | |
# Basic Auth Credentials | |
username = '' | |
password = '' | |
# Make HTTP Request and print response | |
r = requests.get(endpoint, headers=headers, data=payload, proxies=proxies, verify=False, auth=(username, password)) | |
print r.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment