Currently I have Fiddler's Host Remapping feature configured like so:
127.0.0.1:10092 *WebsiteA.com
127.0.0.1:10092 *WebsiteA.de
127.0.0.1:10092 *WebsiteA.es
127.0.0.1:10092 *WebsiteA.co.uk
127.0.0.1:10092 *WebsiteA.fr
127.0.0.1:10092 *WebsiteA.it
127.0.0.1:10091 *m.WebsiteB.com
127.0.0.1:10091 *m.WebsiteB.com.au
127.0.0.1:10091 *m.WebsiteB.de
127.0.0.1:10091 *m.WebsiteB.es
127.0.0.1:10091 *m.WebsiteB.co.uk
127.0.0.1:10091 *m.WebsiteB.fr
127.0.0.1:10091 *m.WebsiteB.it
127.0.0.1:10093 *WebsiteB.com
127.0.0.1:10093 *WebsiteB.com.au
127.0.0.1:10093 *WebsiteB.de
127.0.0.1:10093 *WebsiteB.es
127.0.0.1:10093 *WebsiteB.co.uk
127.0.0.1:10093 *WebsiteB.fr
127.0.0.1:10093 *WebsiteB.it
How can I use a wildcard for the Top Level Domain?
I tried to use the code below in the Fiddler Rules script's OnBeforeRequest() but am not having success. How can this be done?
if
(oSession.host.Contains(
'.websiteB.'
)) {
//
oSession.host=
'127.0.0.1'
;
oSession.m_hostIP=
'127.0.0.1'
;
oSession.port=10091;
// MessageBox.Show(oSession);
}