Created
September 3, 2016 00:17
-
-
Save kashifpk/7e120c7493a2b68f0fd3120962d3bf77 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from requests import Request, Session | |
req = Request('GET', 'http://[::1]') | |
s = Session() | |
prep = req.prepare() | |
prep.prepare_headers({'host': '::1'}) | |
resp = s.send(prep) | |
print(resp.status_code) | |
print(resp.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or simply::