Friday, 23 June 2017

Redirecting to Another Host by Fiddler

If you want to redirect the request to one host to another host through fiddler, you can do it easily with Fiddler script. You can either edit the fiddler script by installing Fiddler script add on to fiddler or you can edit with notepad or similar text editors.

Open the fiddler script and locate this function :
static function OnBeforeRequest(oSession: Session) {

On this function paste the below code:
1
2
3
if (oSession.HostnameIs("yahoo.com")) {
oSession.hostname="google.com";
}
THis code will redirect the request from yahoo.com to Google.com. 

This will be helpful if you are testing applications in multiple domains.

No comments:

Shrinking the size of Oracle Virtual Box

First, zero fill your virtual disk. Boot the VM and run: sudo dd if=/dev/zero of=/bigemptyfile bs=4096k status=progress sudo rm -f /bigempty...