2

so here's the situation. I have a proxy but needs to pass authorization headers. I want a proxy that only I can access from my server without having to write the headers.

how can I do this in python? basically all I'm doing is adding authorization headers to another remote proxy.

me -> server -> python server (passes auth headers) -> remote proxy

1 Answer 1

1

You can try connectiong to proxy through this piece of code

proxy_support = urllib2.ProxyHandler({"http":"http://...."})
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.