I am looking for a lib that lets me roughly:
- connect to localhost:port, but see http://somesite.com
- rewrite all static assets to point to localhost:port instead of somesite.com
- support cookies / authentication
i know that http://betterinternet.co/ does this already, but they wont give me their source code for some reason.
I assume this doesnt exist as free code, so if i were to write one, are there any nuances to it? If i replace all occurrences of somesite.com in html and headers, will that be enough?