Page 1 of 1

Replace HTTPS to HTTP

Posted: Sun Sep 17, 2023 11:49 am
by Vaytl
Hi Salvadordf .
Could you please advise me on how I can replace all links from HTTPS to HTTP? This is necessary for an internal TCP network.

Re: Replace HTTPS to HTTP

Posted: Mon Sep 18, 2023 8:27 am
by salvadordf
Hi,

I've never done that but you can try replacing the URI of each request.

Use the code in this post :
https://www.briskbard.com/forum/viewtopic.php?p=8883#p8883

Then replace HTTPS with HTTP in TempRequest.URI.

Re: Replace HTTPS to HTTP

Posted: Mon Sep 18, 2023 12:01 pm
by Vaytl
Thank you, it worked.

Code: Select all

TempRequest.URI := StringReplace(TempRequest.URI, 'https://', 'http://', [rfReplaceAll, rfIgnoreCase]);