fscok实现异步调用PHP(2)_PHP应用_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

fscok实现异步调用PHP(2)

作者:黑客防线网安PHP维护基地 来源:黑客防线网安PHP维护基地 浏览次数:0

本篇关键词:调用实现 header
黑客防线网安网讯:     *//*以下头信息域可以省略         $header .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 ";         $header .=...

     *//*以下头信息域可以省略
        $header .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 ";
        $header .= "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,q=0.5 ";
        $header .= "Accept-Language: en-us,en;q=0.5 ";
        $header .= "Accept-Encoding: gzip,deflate ";
         */

        $header .= "Connection:Close ";
   if(!empty($cookie))...{
                $_cookie = strval(NULL);
                foreach($cookie as $k => $v)...{
                        $_cookie .= $k."=".$v."; ";
                }
                $cookie_str =  "Cookie: " . base64_encode($_cookie) ." ";//传递Cookie
                $header .= $cookie_str;
        }
        if(!empty($post_data))...{
                $_post = strval(NULL);
                foreach($post_data as $k => $v)...{
                        $_post .= $k."=".$v."&";
                }
                $post_str  = "Content-Type: application/x-www-form-urlencoded ";//POST数据
                $post_str .= "Content-Length: ". strlen($_post) ." ";//POST数据的长度
        

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-13664-1.html
网站维护教程更新时间:2012-03-30 04:38:20  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer