NetTalk Central

Author Topic: ReDirect from http to https problem  (Read 3824 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
ReDirect from http to https problem
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: ReDirect from http to https problem
« Reply #1 on: September 25, 2016, 10:55:02 PM »
all additional information would be gratefully accepted.

cheers
Bruce

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: ReDirect from http to https problem
« Reply #2 on: September 26, 2016, 02:46:05 AM »
Here you go Bruce, see attached.


Ashley

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: ReDirect from http to https problem
« Reply #3 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