0

问题正是标题。我有页面的标题和授权,但我只是想知道是否可以通过网络浏览器而不是通过例如带有 http GET 请求的 php 来查看它。

如果我在浏览器上点击页面,我会得到:

HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication ()

有没有办法将标头和验证码放到浏览器中打开并查看内容,或者这只能通过像 php 这样的脚本语言来处理?

4

1 回答 1

0

通常,您可以使用以下语法为username具有密码的用户提供 HTTP 身份验证:password

http://username:password@thesite.com/path/to/page.htm
于 2013-01-18T05:24:29.070 回答