Skip to content

added support for simple redirect of url, man in the middle style. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hernan604
Copy link

Hi Book, im br dev, i use your lib to debug some js and css on production websites.. so i activate the proxy and configure as below.. and just open the page and tada! it makes easier to debug css/js in prod servers without touching the real files.
If you are interested on this solution accept the pull request, and you can add your changes.

Example of configuration:

use HTTP::Proxy;
my $proxy = HTTP::Proxy->new( port => 13128 );
$proxy->stash( redirects => {
  'http://www.google.com/' => 'http://www.yahoo.com/',
} );
$proxy->start;
1;

Hope we can talk soon, see you, tks

I added support for simple redirect of urls, because i need to
debug some javascript which is on production websites and i cant
debug them online.. so i use this proxy to show my local js contents
and this allows to modify the js, reload the webpage just like when
i visit the web site .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant