[英]Passing variables in https url
I am trying to pass a value with a url which goes to a login page. 我试图传递一个带有登录页面URL的值。 The login page has a https url and when I follow the link it removes the variable at the end.
登录页面上有一个https网址,当我点击链接时,它会在最后删除变量。 So for example the url starts off as
因此,例如,网址以
https://website.com/login?myvalue
The link works and the url still contains the value when I get to the page but by the time the page has finished loading the value is gone. 链接有效,当我到达页面时,URL仍然包含该值,但是到页面完成加载时,该值已消失。 The url becomes:
网址变成:
https://website.com/login
Is it not possible to pass a value with a https url or am I just doing it wrong? 无法使用https网址传递值,还是我做错了? All help appreciated.
所有帮助表示赞赏。 Thanks in advance.
提前致谢。
Surely you should assign a value to the urlURL variable myvalue? 当然应该为urlURL变量myvalue分配一个值吗?
https://website.com/login?myvalue=yes
I haven't worked with HTTPS, only HTTP, but it should work the same unless they don't allow request variables. 我没有使用HTTPS,仅使用HTTP,但是除非它们不允许使用请求变量,否则它应该也可以使用。
Turned out to be a redirect over-writing the url. 原来是重定向重写了url。 I had to use session variables in the end unfortunately
不幸的是我最终不得不使用会话变量
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.