php 模拟post_验证页面的返回状态(实例讲解)
function send_http_status($code) {
static $_status = array(
// Informational 1xx
=> 'Continue',
=> 'Switching Protocols',
// Success 2xx
=> 'OK',
=> 'Created',
=> 'Accepted',
=> 'Non-Authoritative Information',
=> 'No Content',
=> 'Reset Content',
=> 'Partial Content',
// Redirection 3xx
=> 'Multiple Choices',
=> 'Moved Permanently',
=> 'Moved Temporarily ', // 1.1
=> 'See Other',
=> 'Not Modified',
=> 'Use Proxy',
// 306 is deprecated but reserved
=> 'Temporary Redirect',
// Client Error 4xx
=> 'Bad Request',
=> 'Unauthorized',
=> 'Payment Required',
=> 'Forbidden',
=> 'Not Found',
=> 'Method Not Allowed',
=> 'Not Acceptable',
=> 'Proxy Authentication Required',
=> 'Request Timeout',
=> 'Conflict',
=> 'Gone',
=> 'Length Required',
=> 'Precondition Failed',
=> 'Request Entity Too Large',
=> 'Request-URI Too Long',
=> 'Unsupported Media Type',
=> 'Requested Range Not Satisfiable',
=> 'Expectation Failed',
// Server Error 5xx
=> 'Internal Server Error',
=> 'Not Implemented',
=> 'Bad Gateway',
=> 'Service Unavailable',
=> 'Gateway Timeout',
=> 'HTTP Version Not Supported',
=> 'Bandwidth Limit Exceeded'
);
if(array_key_exists($code,$_status)) {
header('HTTP/1.1 '.$code.' '.$_status[$code]);
}
}
- php 模拟post_验证页面的返回状态(实例讲解)
- PHP模拟POST,验证页面的返回状态
- php用户注册页面使用js进行表单验证具体实例
- ASP.NET Post页面及验证视图状态MAC失败问题的正确解决办法
- PHP 极验验证码实例讲解
- ASP.NET Post页面及验证视图状态MAC失败问题正确的解决办法
- ASP.NET Post页面及验证视图状态MAC失败问题的正确解决办法
- PHP socket 模拟POST 请求实例代码
- ASP.NET Post页面及验证视图状态MAC失败问题的解决办法
- php实现模拟post请求用法实例
- ASP.NET Post页面及验证视图状态MAC失败问题的正确解决办法
- php用户注册页面利用js进行表单验证具体实例
- ubutu 16.04环境下,PHP与mysql数据库,网页登录验证实例讲解
- form submit时将__VIEWSTATE和__VIEWSTATEGENERATOR一起post到另外的页面,出现验证视图状态 MAC 失败。
- 手动修改PHP页面返回状态码
- ASP.NET Post页面及验证视图状态MAC失败问题的正确解决办法
- 实例讲解PHP页面静态化
- 使用PHP返回需要登录验证的HTML页面
- PHP给前端返回一个JSON对象的实例讲解
- PHP利用CURL方法模拟POST提交数据并获得返回值的小细节