Two ways to use this proxy in Python #3
Comments
@scturtle, were you able to use it with https sites? |
@scturtle oh lovely, thanks for sharing. 🏆 |
@scturtle Thanks for sharing! Any idea how can I package it with my script together? Or do an update to docs or something? |
@spaze Not really. Just share here in case someone needs. Pls feel free to take any part of the code or close this issue. |
Thanks for sharing! If possible, can you do another example but using python requests? |
I tried the above code changes and still seem to be getting a b'malformed HTTP response ""\n'. Is there something that I'm missing? I used the proxy.py script in the gist you made and it seems to work when I do that. So not sure why there would be something specific to doing the monkey patch (I've tested to make sure that the proxy credentials are valid) |
With http resources everything is fine, but with https - |
After got the secret sauce:
I find that one low-level way to use it is:
Another method needs an ugly monkey patch of
HTTPSConnection
to avoid SNI error:The text was updated successfully, but these errors were encountered: