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

Redirection from HTTPS to HTTP

2 Answers 1898 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 27 Mar 2018, 04:25 PM

Hello,

is it possible to redirect traffic with fiddler from "https://one.servername" to "http://another.servername"

I tried to add next to FiddlerScript:

        if(oSession.HostnameIs("servername.com") && oSession.isHTTPS){
            oSession.hostname="another.servername.com";
        }

And it redirects but to HTTPS and not HTTP. Is there a way to set oSession to HTTP? or any other way to handle that redirection?

Thank you.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Simeon
Telerik team
answered on 02 Apr 2018, 02:45 PM
Hi Igor,

In order to do this, you need to set the URI scheme, as well.
        if(oSession.HostnameIs("servername.com") && oSession.isHTTPS){
            oSession.oRequest.headers.UriScheme = "http";
            oSession.hostname="another.servername.com";

        }

Regards,
Simeon
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Igor
Top achievements
Rank 1
answered on 02 Apr 2018, 03:15 PM
Thank you Simeon.
Tags
Fiddler Classic
Asked by
Igor
Top achievements
Rank 1
Answers by
Simeon
Telerik team
Igor
Top achievements
Rank 1
Share this question
or