How to redirect an HTTP URL to HTTPS in Windows?










1














I need to force a program on my Windows 10 to use HTTPS when connecting to its server because HTTP version of that address is blocked on my network. I basically need to add an "S" to the URL. I know the address it needs to connect to, i've been using Fiddler to monitor the requests, is it possible to do this using Fiddler? apparently it's impossible to do it with Windows hosts file.










share|improve this question


























    1














    I need to force a program on my Windows 10 to use HTTPS when connecting to its server because HTTP version of that address is blocked on my network. I basically need to add an "S" to the URL. I know the address it needs to connect to, i've been using Fiddler to monitor the requests, is it possible to do this using Fiddler? apparently it's impossible to do it with Windows hosts file.










    share|improve this question
























      1












      1








      1







      I need to force a program on my Windows 10 to use HTTPS when connecting to its server because HTTP version of that address is blocked on my network. I basically need to add an "S" to the URL. I know the address it needs to connect to, i've been using Fiddler to monitor the requests, is it possible to do this using Fiddler? apparently it's impossible to do it with Windows hosts file.










      share|improve this question













      I need to force a program on my Windows 10 to use HTTPS when connecting to its server because HTTP version of that address is blocked on my network. I basically need to add an "S" to the URL. I know the address it needs to connect to, i've been using Fiddler to monitor the requests, is it possible to do this using Fiddler? apparently it's impossible to do it with Windows hosts file.







      networking windows-10 https






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      Stephan

      781113




      781113




















          1 Answer
          1






          active

          oldest

          votes


















          1














          It is possible to use Fiddler for that, as described in the article
          Fiddler’s custom rules – how to replace protocol or domain in fiddler:




          Open “Custom rules”, find this method



          static function OnBeforeRequest(oSession: Session)


          add to the beginning of the method the following code:



          // Custom rules:
          if (oSession.HostnameIs("mikitamanko.com")
          || oSession.HostnameIs("google.com")
          || oSession.HostnameIs("bing.com"))
          oSession.fullUrl = "https" + oSession.fullUrl.Substring(oSession.fullUrl.IndexOf(':'));



          This will replace protocol for sites listed in code.




          A hacking solution would be to use a hex editor to modify the URL in the
          program's .exe file.
          A list of hex editors can be found in the article
          Best Free Hex Editor.
          This will work only if the program is not digitally signed.






          share|improve this answer




















          • Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
            – Stephan
            yesterday






          • 1




            It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
            – harrymc
            yesterday










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "3"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388086%2fhow-to-redirect-an-http-url-to-https-in-windows%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          It is possible to use Fiddler for that, as described in the article
          Fiddler’s custom rules – how to replace protocol or domain in fiddler:




          Open “Custom rules”, find this method



          static function OnBeforeRequest(oSession: Session)


          add to the beginning of the method the following code:



          // Custom rules:
          if (oSession.HostnameIs("mikitamanko.com")
          || oSession.HostnameIs("google.com")
          || oSession.HostnameIs("bing.com"))
          oSession.fullUrl = "https" + oSession.fullUrl.Substring(oSession.fullUrl.IndexOf(':'));



          This will replace protocol for sites listed in code.




          A hacking solution would be to use a hex editor to modify the URL in the
          program's .exe file.
          A list of hex editors can be found in the article
          Best Free Hex Editor.
          This will work only if the program is not digitally signed.






          share|improve this answer




















          • Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
            – Stephan
            yesterday






          • 1




            It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
            – harrymc
            yesterday















          1














          It is possible to use Fiddler for that, as described in the article
          Fiddler’s custom rules – how to replace protocol or domain in fiddler:




          Open “Custom rules”, find this method



          static function OnBeforeRequest(oSession: Session)


          add to the beginning of the method the following code:



          // Custom rules:
          if (oSession.HostnameIs("mikitamanko.com")
          || oSession.HostnameIs("google.com")
          || oSession.HostnameIs("bing.com"))
          oSession.fullUrl = "https" + oSession.fullUrl.Substring(oSession.fullUrl.IndexOf(':'));



          This will replace protocol for sites listed in code.




          A hacking solution would be to use a hex editor to modify the URL in the
          program's .exe file.
          A list of hex editors can be found in the article
          Best Free Hex Editor.
          This will work only if the program is not digitally signed.






          share|improve this answer




















          • Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
            – Stephan
            yesterday






          • 1




            It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
            – harrymc
            yesterday













          1












          1








          1






          It is possible to use Fiddler for that, as described in the article
          Fiddler’s custom rules – how to replace protocol or domain in fiddler:




          Open “Custom rules”, find this method



          static function OnBeforeRequest(oSession: Session)


          add to the beginning of the method the following code:



          // Custom rules:
          if (oSession.HostnameIs("mikitamanko.com")
          || oSession.HostnameIs("google.com")
          || oSession.HostnameIs("bing.com"))
          oSession.fullUrl = "https" + oSession.fullUrl.Substring(oSession.fullUrl.IndexOf(':'));



          This will replace protocol for sites listed in code.




          A hacking solution would be to use a hex editor to modify the URL in the
          program's .exe file.
          A list of hex editors can be found in the article
          Best Free Hex Editor.
          This will work only if the program is not digitally signed.






          share|improve this answer












          It is possible to use Fiddler for that, as described in the article
          Fiddler’s custom rules – how to replace protocol or domain in fiddler:




          Open “Custom rules”, find this method



          static function OnBeforeRequest(oSession: Session)


          add to the beginning of the method the following code:



          // Custom rules:
          if (oSession.HostnameIs("mikitamanko.com")
          || oSession.HostnameIs("google.com")
          || oSession.HostnameIs("bing.com"))
          oSession.fullUrl = "https" + oSession.fullUrl.Substring(oSession.fullUrl.IndexOf(':'));



          This will replace protocol for sites listed in code.




          A hacking solution would be to use a hex editor to modify the URL in the
          program's .exe file.
          A list of hex editors can be found in the article
          Best Free Hex Editor.
          This will work only if the program is not digitally signed.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          harrymc

          253k12259562




          253k12259562











          • Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
            – Stephan
            yesterday






          • 1




            It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
            – harrymc
            yesterday
















          • Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
            – Stephan
            yesterday






          • 1




            It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
            – harrymc
            yesterday















          Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
          – Stephan
          yesterday




          Thank you so much, worked perfect. btw does running Fiddler in the background all time cause any performance issue ? such as in networking, ping times or overall performance?
          – Stephan
          yesterday




          1




          1




          It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
          – harrymc
          yesterday




          It adds one more waypoint for your requests, so will slow them down, but the delay is probably only measured in milliseconds.
          – harrymc
          yesterday

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388086%2fhow-to-redirect-an-http-url-to-https-in-windows%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          ReactJS Fetched API data displays live - need Data displayed static

          Evgeni Malkin