Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Replace HTTPS to HTTP

Post Reply
Vaytl
Posts: 22
Joined: Tue Jan 04, 2022 12:52 pm

Replace HTTPS to HTTP

Post 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.
User avatar
salvadordf
Posts: 4079
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Replace HTTPS to HTTP

Post 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.
Vaytl
Posts: 22
Joined: Tue Jan 04, 2022 12:52 pm

Re: Replace HTTPS to HTTP

Post by Vaytl »

Thank you, it worked.

Code: Select all

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