Is it possible to view NHtmlUnit web requests in Fiddler?

2 Answers 112 Views
Fiddler Classic Windows
Reg
Top achievements
Rank 1
Iron
Reg asked on 09 Sep 2021, 10:12 AM
I am using NHtmlUnit on Windows 10 which is a headless browser Javascript engine which I've downloaded from Nuget.  NHtmlUnit allows me to request and download webpages using a standard Url e.g. http://someurl.co.uk but I cannot seem to see these requests appearing in Fiddler (Classic).  Have I configured Fiddler incorrectly? Or because NHtmlUnit IS a headless browser I am never going to see them?  Grateful for any help - thanks

2 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 13 Sep 2021, 06:29 AM

Hello Reg,

 

I am not familiar with NHtmlUnit, but it looks like that you are using it as a NET library within your NET codebase. If that is the case, then you would need to enable your NET application to use the Fiddler proxy as described in the following article:

https://docs.telerik.com/fiddler/configure-fiddler/tasks/configuredotnetapp

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.https://docs.telerik.com/fiddler/configure-fiddler/tasks/configuredotnetapp

Reg
Top achievements
Rank 1
Iron
commented on 13 Sep 2021, 09:34 PM

Thank you Nick.  The answer was

netsh winhttp set proxy 127.0.0.1:8888

and in the program

webClient = new WebClient(BrowserVersion.CHROME, "127.0.0.1", 8888);

 

and it all started working.  Man thanks

 

0
Reg
Top achievements
Rank 1
Iron
answered on 13 Sep 2021, 09:35 PM
See my comment above.  Thank you Nick
Tags
Fiddler Classic Windows
Asked by
Reg
Top achievements
Rank 1
Iron
Answers by
Nick Iliev
Telerik team
Reg
Top achievements
Rank 1
Iron
Share this question
or