Currently I have Fiddler's Host Remapping feature configured like so:
127.0.0.1:10092 *WebsiteA.com127.0.0.1:10092 *WebsiteA.de127.0.0.1:10092 *WebsiteA.es127.0.0.1:10092 *WebsiteA.co.uk127.0.0.1:10092 *WebsiteA.fr127.0.0.1:10092 *WebsiteA.it127.0.0.1:10091 *m.WebsiteB.com127.0.0.1:10091 *m.WebsiteB.com.au127.0.0.1:10091 *m.WebsiteB.de127.0.0.1:10091 *m.WebsiteB.es127.0.0.1:10091 *m.WebsiteB.co.uk127.0.0.1:10091 *m.WebsiteB.fr127.0.0.1:10091 *m.WebsiteB.it 127.0.0.1:10093 *WebsiteB.com127.0.0.1:10093 *WebsiteB.com.au127.0.0.1:10093 *WebsiteB.de127.0.0.1:10093 *WebsiteB.es127.0.0.1:10093 *WebsiteB.co.uk127.0.0.1:10093 *WebsiteB.fr127.0.0.1:10093 *WebsiteB.itHow 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); }