This is a migrated thread and some comments may be shown as answers.

Fiddler Script

13 Answers 210 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 13 Dec 2014, 09:49 AM
I want use Fiddler Script and I have those packets with this host name :

wl.search.ar.ns.test.com

If I use oSession.HostnameIs how can I do ?

So ? 

if (oSession.HostnameIs("wl.search.ar.ns.test.com")) {
            oSession.hostname="199.156.34.12";
}

is it correct ?

13 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 15 Dec 2014, 03:25 PM
I don't know what "how can I do ?" means. What specifically are you trying to accomplish?

The code that you wrote, when placed inside the OnBeforeRequest method of your FiddlerScript, will change the hostname of any request for the specified hostname to the specified IP address.

The Tools > HOSTS... command in Fiddler works similarly, but also fixes up HTTPS certificates, etc.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marco
Top achievements
Rank 1
answered on 20 Dec 2014, 11:20 PM
Don't go that, with script and with Tools --> HOST --> Host Remapping
Help me !!!
0
Marco
Top achievements
Rank 1
answered on 20 Dec 2014, 11:22 PM
I use a Windows application, is it the problem ?
Your Fiddler go only with Browsers programs  ?
0
Marco
Top achievements
Rank 1
answered on 21 Dec 2014, 08:22 AM
Listen, I use WireShark to know what type network traffic is with my Windows application and I see TCP and HTTP.
0
Eric Lawrence
Telerik team
answered on 22 Dec 2014, 03:56 PM
Howdy, Marco--

I still don't understand what problem you're having? What specifically are you trying to do, and what exactly happens?

Fiddler works with any program that supports a proxy, which is essentially anything written in Java, .NET, C++, etc. Sometimes, poorly-written programs will not automatically use the system's proxy settings and must be manually configured to use the proxy (127.0.0.1:8888) but telling me what the program you're using is will help.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marco
Top achievements
Rank 1
answered on 22 Dec 2014, 05:15 PM
Listen, when I set proxy with this command :
netsh winhttp set proxy 127.0.0.1:8888

then, I must reboot computer ?
0
Eric Lawrence
Telerik team
answered on 22 Dec 2014, 07:39 PM
No, you don't need to reboot anything.

What version of Windows are you using?
Do you think the application in question is using WinHTTP? If so, is it a 32bit program or a 64bit program?

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marco
Top achievements
Rank 1
answered on 23 Dec 2014, 09:26 AM
This Windows Application is a 32bit and I'm using Windows 7 Pro 64bit.
After that I set proxy 127.0.0.1:8888 I see capture packets with other program (Windows application) but I don't see capture with this application, where is the problem ?
0
Marco
Top achievements
Rank 1
answered on 23 Dec 2014, 09:29 AM
How can I know if this application use WinHTTP ?
This application go on Internet for to use web service or other service and this application surf on internet pages
0
Marco
Top achievements
Rank 1
answered on 23 Dec 2014, 09:34 AM
Listen, if this can help you .
After that I set proxy 127.0.0.1:8888 and I run "Fiddler" without set "Fiddler Script" this windows application don't go more on internet pages and don't work other services
0
Eric Lawrence
Telerik team
answered on 23 Dec 2014, 07:56 PM
What, specifically, is the application?

Does it use HTTPS? Have you enabled HTTPS decryption in Fiddler? Have you trusted Fiddler's root certificate?

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marco
Top achievements
Rank 1
answered on 23 Dec 2014, 11:18 PM
The application is Windows Phone Emulator, I test my application on this emulator and I must debug my application
0
Eric Lawrence
Telerik team
answered on 24 Dec 2014, 05:26 PM
Hi, Marco--

The "Windows Phone Emulator" isn't really an application at all-- it's a virtual machine. As such, there are special requirements you need to follow in order to get its traffic captured. Have a look at http://stackoverflow.com/questions/23462697/windows-phone-8-1-emulator-not-proxying-through-fiddler and if you still have problems, please provide information about what version of VS and Windows you're using.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Fiddler Classic
Asked by
Marco
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Marco
Top achievements
Rank 1
Share this question
or