需要HTTP验证 [英] HTTP authentication required

查看:130
本文介绍了需要HTTP验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我想知道如何编写程序(php,Perl,python,...语言并不重要)
填写由php header()自动创建的HTTP身份验证必填字段.
您可以看到一个[此处]

用户名:test
password:test

hey i want to know how can i write a program (php,Perl ,python,... language is not important )
to fill in the HTTP authentication required field''s automatically made by php header() ) automatically.
you can see one [here]

username: test
password:test

推荐答案

首先,您列出的语言是服务器端编程语言. (我知道有些可以用于本地脚本编写.)

其次,您的示例链接是返回状态码401(需要授权).浏览器会依次显示对话框,供您输入身份验证凭据(用户名/密码).

我认为您不能自动填写该框.当然,您可以提出一些Form Filler应用程序,但这将是特定于浏览器的实现,并且需要在客户端计算机上运行.
First the language you listed are server side programming languages . ( I know some can be used for local scripting).

Second, your example link is returns status code401 (Authorization required). Your browser in turn displays the dialog for you to enter authentication credentials (username/password).

I don''t think you can fill that box automatically. Of course you could comeup with some form filler application, but that will be browser specific implementation and it needs to run on the client machine.


这篇关于需要HTTP验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆