Content-Type of Request Session Is empty. Need to set it to text/html;charset=ISO-8859-1

1 Answer 100 Views
Fiddler Classic
Jerry
Top achievements
Rank 1
Jerry asked on 16 Dec 2022, 06:21 PM

Sucessful GET Requests have a Content-Type of text/html;charset=ISO-8859-1.

In FiddlerScript I have built the exact same Request as a string variable. When I send it using FiddlerObject.utilIssueRequest it fails with an HTTP 500 error and no value in the Session Content-Type column.

How does one set the Content-Type of the entire GET Request?

Jerry

 

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 19 Dec 2022, 07:07 AM

Hello Jerry,

 

You can pass the Headers as a string

var someHeader = "Content-Type:  text/html;charset=ISO-8859-1"; var someContent = "<some-content-fololw-here>"; var myRequest = "GET https://example.com HTTP/1.1\r\n" + someHeader + "Content-Length: " + Content.length + "\r\n\r\n" + someContent;

FiddlerObject.utilIssueRequest(myRequest);

 

 

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/.

Tags
Fiddler Classic
Asked by
Jerry
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or