Export Sessions to Visual Studio WebTest removes Referer headers

1 Answer 193 Views
Fiddler Classic
Christian
Top achievements
Rank 1
Christian asked on 24 Sep 2021, 03:36 PM

Is there a way to control which headers that are filtererd out during an export of sessions to a Visual Studio WebTest file?

Since Microsoft is dropping support for both IE11 and Visual Studio Loadtesting features, the Web Test Recorder is becoming more and more of a problem for recording webtest files. For that reason we have started to use Fiddler instead, but noticed several draw backs, the worst being that all requests have the Referer header removed during export (even with ALL options disabled during save).

Another draw back is that Fiddlers option to handle Redirects in such export does not seem to be working. Requests that are caused by the browser following a redirect har exported like any other normal request (in the webtest request the option is set to Follow Redirects on all of these as well). We can handle this problem manually and remove the requests in a redirect chain, but the Referer header removal is a bigger problem.

If this is not available as a config setting somewhere, is it possible to change this behaviour? If not, is it possible to get the code for the export plugin so we can modify the behaviour? If that is not possible, can we create/code our own plugins to the WebTest exporter?

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 27 Sep 2021, 10:12 AM

Hello Christian,

As you have observed, the Visual Studio WebTest file support was deprecated from Microsoft back in 2019. Microsoft stated they are no longer recommending using these files for load testing (or other purposes). That said, the Fiddler team is no longer supporting the format, so you should not expect any updates related to existing or new functionalities.

The above said, an applicable option for you would be to create your custom FIddler exporter. You can use this KB article as a reference on how to approach the problem.

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Eric
Top achievements
Rank 1
commented on 28 Sep 2021, 06:20 PM

It's unfortunate that Telerik isn't willing to make a change here, but you might be able to just hack it up yourself (obviously, it would not be supported). If you open VSWebTestExport.dll in a hex editor, you can find the string Referer (which will appear with nulls between each letter, like 52 00 65 00 66...) and overwrite the first character (52) with some other letter (e.g. 65). 
Tags
Fiddler Classic
Asked by
Christian
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or