dongmin1166 2010-12-29 06:30
浏览 42

如何使用PHP阅读网页标题?

Basically we read the requesting headers using

       print_r($_SERVER['HTTP_MSISDN']);
             OR 
       $headers = apache_request_headers();
       print_r($headers['MSISDN']);

But using those code i can't receive the MSISDN number from web header.The MSISDN is send through the web header. so,*is their any other way to read the web header?*The header formate is below.

Example header:

GET /Gamezilla/Wap/Home.aspx HTTP/1.1
User-Agent: MOT-RAZRV3x/85.9B.C0R MIB/BER2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1
Accept: */*, text/css, image/*;q=0.9, application/javascript, application/vbscript, application/xhtml+xml, text/html, application/xml;q=0.9, image/png, image/jpeg, image/jpg, image/gif, image/x-xbitmap
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: ASP.NET_SessionId=ypx2scvweaahpd45gvf0ge45
x-wap-profile: "http://motorola.handango.com/phoneconfig/razrv3x/Profile/razrv3x.rdf"
X-Device-User-Agent: MOT-RAZRV3x/85.9B.C0R MIB/BER2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1
APN: testint
Charging-Characteristics: 0800
Bearer-Type: GPRS
SGSN-IP-Address: 123.123.123.123
Accounting-Session-ID: 213.213.213.213:CA3806A24C452CD2
MSISDN: 00123456789
IP-Address: 213.213.213.213
NAS-IP-Address: 10.123.123.123
Via: 1.1 Bytemobile OSN WebProxy/5.2
Host: wap.abc.com
Cache-Control: max-age=43200
Connection: keep-alive

please help me to receive the MSISDN information from the provided header.

  • 写回答

3条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥60 pb数据库修改或者求完整pb库存系统,需为pb自带数据库
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路