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

404 error in fiddler logs

1 Answer 1512 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Pooja
Top achievements
Rank 1
Pooja asked on 24 Apr 2015, 01:30 PM

Hi All,

 

I am using Fiddler4.4.9.4.I am accessing a java application and can see http logs in fiddler. On hitting the application url in the browser(IE), I can see 404 error in fiddler for the following url:

/webroot/servlet/

Is there a way I can restrict this url from getting logged in fiddler using web.xml or some other setting.

In general, is there a way to restrict 404 error in fiddler using java code?

The application runs fine and there is no issue with this error in fiddler.Still,I need to remove this 404 error from fidder.Its a business requirement.

I tried googling aboult but did not find any thing suitable.

Any help is highly appreciated.Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 24 Apr 2015, 04:11 PM
Hello, Pooja-- It's not clear what you're asking. If you want to ensure that a 404 doesn't appear in the Fiddler logs, the best way to do so would be to fix either the client or the server so the client doesn't request a URL that the server does not have content for. That way, the request doesn't show up in Fiddler and the client doesn't waste its time asking the server for something it doesn't have, and the server doesn't waste its time telling the client that the requested item doesn't exist.

If you're saying: "No, I want my client and server to waste time, but I don't want Fiddler to show that they are doing so. Can I hide 404s so they don't show up in Fiddler?" the answer is, yes, of course you can configure Fiddler to hide anything you want. Click Rules > Customize Rules. Scroll to OnBeforeResponse, and inside the method add the code:

   if (oSession.responseCode == 404) { oSession["ui-hide"] = "hiding 404s..."; }


Regards,
Eric Lawrence
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

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