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 :
On this function paste the below code:
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:
Post a Comment