pgaref / HTTP_Request_Randomizer

Proxying Python Requests
http://pgaref.com/blog/python-proxy/
MIT License
151 stars 59 forks source link

Fixed header update bug, added proxy sustain #21

Closed glen-mac closed 8 years ago

glen-mac commented 8 years ago

Added ability to sustain a proxy. This may be required if a user needs to perform a GET request, parse a page for CSRF and then POST a form. Once this is done the user may call RequestProxy.randomize() proxy to change the proxy. This is disabled by default using the argument 'sustain' when creating the RequestProxy instance. If sustain is enabled - the proxy will still be randomised if the current proxy times out. The user is able to disable sustain at any time using Instance.sustain, and can get the address of the current proxy using Instance.current_proxy. If sustain is disabled then the proxy is randomised on each request

fixed issue with headers not actually being updated, due to {}.update() not returning the updated dictionary. Call for update done before use and now works

glen-mac commented 8 years ago

Will create request for logging commit when this is merged

pgaref commented 8 years ago

Great thanks! Logging setting could be in a separate file but this is good enough for now