December 19, 2013
Brush up on your Charles knowledge with our very own Swaraj Banerjee, a member of the Expect Labs engineering team. Watch as Swaraj walks us through how to map a web resource to a local file.
Keep up the Charles momentum and check out this video that explains how to edit previously made requests.
Hi my name is Swaraj and this is my third installment on my series on Charles Web Debugging Proxy. Here is how to map a web resource to a local file.
Here, if I refresh this webpage, I can see that it made a request to a bunch of JS and HTML files. Let’s say I wanted to work with a local file and have the webpage actually render my local file instead of whatever it was requesting from the server. Let’s say I wanted to map this mindmeld.js file to a file I have locally. What I do is right click, click “map local,” send it to a local path. This is a file I had called local.mindmeld.js, which will fire an alert once it loads. Hit “choose,” and then hit “OK.” And now the next time I reload this page it’s going to use my local file. There, it says “Hello, Charles.” And you can see that in Charles the next time that this request was made we actually mapped it to a local file.