NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on June 27, 2025, 11:50:11 PM

Title: NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesi
Post by: MikeR on June 27, 2025, 11:50:11 PM
NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesiro.cloudcover.insure/apiTotalPolicyRecalc] to [https://sesiro.cloudcover.insure/apiTotalPolicyRecalc]
I am getting the above error when I upgraded my nettalk from nettalk 11 to nettalk 14
I am doing a get to a url "sesiro.cloudcover.insure"  ie. from my nettalk 14 app to my nettalk 14 app.
It worked in Nettalk 11 without a https:// prefix.
Is there a setting or new DLL I missed for Nettalk 14 ? 
Title: Re: NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesi
Post by: Jane on June 28, 2025, 08:39:48 AM
https://capesoft.com/docs/NetTalk14/NetTalkWebClient.Htm#UpgradeOptionDontRedirectHTTPtoHTTPS
Title: Re: NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesi
Post by: MikeR on June 30, 2025, 12:48:25 AM
Thank You.
But How do I fix it I call "sesiro.cloudcover.insure" in my code (p_web.RequestHost) do I have to explicitly call "https://" in front to fix it.
Title: Re: NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesi
Post by: Jane on June 30, 2025, 02:55:59 PM
I don't know, Mike.

I suppose you could either
1. specify https://
2. set OptionDontRedirectHTTPtoHTTPS to FALSE

But you do realize that Obi Wan is nagging you - and deliberately put that error onto line 1780 in NetWww.clw  ;)

There's code in the few lines preceding that where he decides how to deal with something that doesn't have http:// or https://

Title: Re: NET ERROR: Attempt to Redirect from HTTP to HTTPS - correct the URL [http://sesi
Post by: Bruce on June 30, 2025, 11:08:26 PM
 correct the URL [http://sesiro.cloudcover.insure/apiTotalPolicyRecalc] to [https://sesiro.cloudcover.insure/apiTotalPolicyRecalc]