NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: astahl on September 23, 2016, 08:43:18 AM

Title: ReDirect from http to https problem
Post by: astahl on September 23, 2016, 08:43:18 AM
Hi Bruce,

The Rediect does not always work correctly when called.

I am using the below code in the WebHandler - ParseRequstHeader Procedure

IF SELF.XForwardedProto = ': http' THEN
  SELF.Redirect('https://www.trackcustommail.com',Net:Web:ToSecure,Net:Web:Repost,Net:Web:PermRedirect)
  RETURN NET:NOTOK
END

It is not returning the redirect to the correct caller. I have the info from WireShark and will supply it if necessary.

Ashley
Title: Re: ReDirect from http to https problem
Post by: Bruce on September 25, 2016, 10:55:02 PM
all additional information would be gratefully accepted.

cheers
Bruce
Title: Re: ReDirect from http to https problem
Post by: astahl on September 26, 2016, 02:46:05 AM
Here you go Bruce, see attached.


Ashley
Title: Re: ReDirect from http to https problem
Post by: Bruce on September 28, 2016, 11:28:32 PM
given the size of that file - any clues as to where I should be looking to see the problem?

also; have you added any debugging to see the result of this line of code;

IF SELF.XForwardedProto = ': http' THEN

perhaps you are assuming XForwardedProto is set to something it is not set to?

cheers
Bruce