Redirection from HTTPS to HTTP

3 posts, 1 answers
  1. Igor
    Igor avatar
    2 posts
    Member since:
    Mar 2018

    Posted 27 Mar Link to this post

    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. Answer
    Simeon
    Admin
    Simeon avatar
    116 posts

    Posted 02 Apr Link to this post

    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
  3. Igor
    Igor avatar
    2 posts
    Member since:
    Mar 2018

    Posted 02 Apr in reply to Simeon Link to this post

    Thank you Simeon.
Back to Top