将基本身份验证转发到表单?
好吧,不过我不知道是否有人尝试过这样做。
我有一个网站,我们可以将其称为 localhost。目前。我在该页面上有一个表格。但是,我希望能够跳过该表单,并使用基本身份验证方法将我的数据重定向到该表单。例如: http://admin:admin@localhost 会将用户名和密码发送到我的表单。
有没有办法做到这一点而无需我修改整个网站?
Alright, I don't know if anyone has tried to do this yet, however.
I have a website lets just call it localhost. for now. I have a form on that page. however, I want to be able to skip the form, and redirect my data to the form by using the basic authentication method. for example: http://admin:admin@localhost would send the username and password to my form.
Is there a way to do that without me having to modify the entire website?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不需要将其发送到表格。
你可以做这样的事情
you don't need to send it to the form.
you can do something like this
使用 $_SERVER 数组非常简单。
Very easy using the $_SERVER array.