wap request Head,其实对于不同品牌的手机,发送的头部都会有区别的:
【联通】HTTP_ACCEPT:application/vnd.wap.wmlc;Type=1108, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, application/vnd.uplanet.signal, application/vnd.uplanet.cacheop-wbxml, application/vnd.uplanet.alert-wbxml, application/vnd.uplanet.channel-wbxml, application/vnd.uplanet.list-wbxml, application/vnd.uplanet.listcmd-wbxml, application/vnd.uplanet.bearer-choice-wbxml, application/vnd.wap.multipart.related, application/vnd.wap.multipart.mixed, application/x-up-device, application/vnd.phonecom.mmc-wbxml, application/octet-stream, image/vnd.wap.wbmp, image/png, image/bmp,image/vnd.wap.wbmp,application/vnd.uplanet.alert,application/x-up-alert,application/vnd.uplanet.bearer-choice,application/vnd.uplanet.cacheop,application/x-up-cacheop,application/vnd.uplanet.channel,application/vnd.uplanet.list,application/vnd.uplanet.listcmd,application/vnd.phonecom.mmc-xml,text/x-wap.wml,text/vnd.wap.wml,text/x-hdml,text/vnd.wap.wmlscript, */*
HTTP_ACCEPT_LANGUAGE:zh, en
HTTP_CONNECTION:close
HTTP_HOST:myhyli.digichina.net
HTTP_USER_AGENT:LGE-LG8380/1.0 UP.Browser/4.1.26l UP.Link/5.1.2.9
HTTP_COOKIE:ASPSESSIONIDQATSASTC=OEHIAIKADHNCNMNHAEIAEPLC;CUI=468;TESTUSER=N
HTTP_VIA:1.1 sh-bgw04:3128 (Squid/2.3.STABLE3), 1.0 sh-bgw04:81, 1.0 sdblbg01:81
HTTP_ACCEPT_CHARSET:utf-8, UTF-8, *
HTTP_CACHE_CONTROL:max-age=259200
HTTP_MAX_FORWARDS:2
HTTP_X_FORWARDED_FOR:10.83.56.88, 10.95.17.106, 127.0.0.1, 211.95.66.93
HTTP_X_UP_DEVCAP_CHARSET:utf-8
HTTP_X_UP_DEVCAP_IMMED_ALERT:1
HTTP_X_UP_DEVCAP_ISCOLOR:1
HTTP_X_UP_DEVCAP_MAX_PDU:8192
HTTP_X_UP_DEVCAP_MSIZE:7,14
HTTP_X_UP_DEVCAP_NUMSOFTKEYS:2
HTTP_X_UP_DEVCAP_SCREENCHARS:24,13
HTTP_X_UP_DEVCAP_SCREENDEPTH:18
HTTP_X_UP_DEVCAP_SCREENPIXELS:169,183
HTTP_X_UP_DEVCAP_SOFTKEYSIZE:12
HTTP_X_UP_FAX_ACCEPTS:text/plain, application/postscript, application/msword, application/rtf, application/pdf
HTTP_X_UP_FAX_ENCODINGS:7bit, 8bit, base64, quoted-printable
HTTP_X_UP_FAX_LIMIT:100000
HTTP_X_UP_SUBNO:联通手机号码
HTTP_X_UP_UPLINK:gateway
HTTP_X_UP_WAPPUSH_SECURE:gatewaysh.hq.wap.uni-info.com.cn:9003/pap
HTTP_X_UP_WAPPUSH_UNSECURE:gatewaysh.hq.wap.uni-info.com.cn:9002/pap
HTTP_X_UP_WTLS_INFO:off
【移动】[HTTP_ACCEPT] => application/x-zip, application/vnd.ces-quickword, application/vnd.ces-quicksheet, audio/wav, audio/x-wav, audio/basic, audio/x-au, audio/au, audio/x-basic, video/mp4, video/mpeg4, video/3gpp, application/vnd.rn-realmedia, audio/amr-wb, audio/amr, audio/mp3, application/sdp, audio/sp-midi, audio/x-beatnik-rmf, audio/midi, audio/aac, audio/mpeg, audio/3gpp, audio/mp4, application/java-archive, text/vnd.sun.j2me.app-descriptor, text/html, application/vnd.wap.xhtml+xml, application/xhtml+xml, application/vnd.wap.wmlc, text/vnd.wap.wml, application/vnd.wap.wbxml1, application/vnd.wap.wmlscriptc, multipart/mixed, application/x-nokiagamedata, application/vnd.ces-quickpoint, video/avi, application/smil, application/pdf, application/vnd.symbian.install, audio/x-pn-realaudio-plugin, audio/x-pn-realaudio, audio/mpegurl, audio/x-mpegurl, text/x-co-desc, application/vnd.oma.dd+xml, application/x-wallet-appl.user-data-provision, application/vnd.met.ticket, application/vnd.nokia.ringing-tone, text/vnd.symbian.wml.dtd, application/vnd.wap.wbxml, application/java, video/3gp, audio/rmf, audio/x-rmf, audio/x-midi, application/x-java-archive, application/vnd.oma.drm.message, psint/eloader, application/x-x509-ca-cert, text/plain, text/x-vcard, text/calendar, text/x-vcalendar, video/qmv, text/css, image/*, text/x-vcard, image/gif, image/vnd.wap.wbmp, text/vnd.wap.wmlscript
[HTTP_ACCEPT_LANGUAGE] => zh-ch, zh
[HTTP_CONNECTION] => close
[HTTP_HOST] => 0791.jxs.cn
[HTTP_USER_AGENT] => Nokia6670/2.0 (6.0525.0ch) SymbianOS/7.0s Series60/2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0
[HTTP_CONTENT_LENGTH] => 0
[HTTP_VIA] => WTP/1.1 GDGZ-PS-GW006-WAP03.gd.chinamobile.com (Nokia WAP Gateway 4.0/CD3/4.1.29)
[HTTP_ACCEPT_ENCODING] => gzip;q=1.0, identity; q=0.8
[HTTP_ACCEPT_CHARSET] => gb2312, iso-8859-1, utf-8, iso-10646-ucs-2; q=0.6
[HTTP_X_WAP_PROFILE] => "http://nds1.nds.nokia.com/uaprof/N6670r100.xml"
[HTTP_X_NETWORK_INFO] => GPRS,8613631402**,10.100.246.217,cmwap,unsecured
[HTTP_X_FORWARDED_FOR] => 10.100.246.217
[HTTP_X_UP_CALLING_LINE_ID] => 移动手机号码
[HTTP_X_SOURCE_ID] => cmwap
[HTTP_X_NOKIA_CONNECTION_MODE] => TCP
[HTTP_X_UP_BEARER_TYPE] => GPRS
[HTTP_X_NOKIA_GATEWAY_ID] => NWG/4.0/CD3/Build04
accept:text/x-vCard,application/smil,image/gif,text/plain,audio/x-midi,text/html,image/bmp,image/vnd.wap.wbmp,text/x-vCalendar,application/vnd.wap.wmlscriptc,application/vnd.phonecom.mmc-wbxml,audio/midi,audio/smaf,image/png,application/vnd.oma.drm.message,application/vnd.wap.mms-message,image/jpg,image/x-up-wpng,application/vnd.wap.multipart.related,application/octet-stream,application/vnd.wap.multipart.mixed,application/vnd.wap.coc,text/x-imelody,text/css,application/x-smaf,application/vnd.wap.sic,application/vnd.uplanet.bearer-choice-wbxml,application/vnd.wap.slc,audio/x-mid,application/xhtml+xml; profile="http://www.wapforum.org/xhtml",application/vnd.wap.connectivity-wbxml,application/vnd.wap.xhtml+xml,application/vnd.smaf,audio/amr,image/jpeg,audio/smf,audio/mid,audio/imelody,application/vnd.wap.wmlc,application/x-imelody, text/vnd.wap.wml, text/vnd.wap.wmlscript, text/vnd.wap.co, text/vnd.wap.si, text/vnd.wap.sl, text/vnd.wap.connectivity-xml
user-agent:NEC-N700/1.0 UP.Browser/6.2.2.4.d.1.102 (GUI) MMP/1.0
accept-charset:utf-8
accept-language:zh-cn
profile:http://nec-uap.com/prof/N700V01.xml
x-up-devcap-screenpixels:120,140
x-up-devcap-msize:11,6
x-up-devcap-softkeysize:12
x-up-devcap-immed-alert:1
x-up-devcap-iscolor:1
x-up-devcap-screendepth:8
cookie:JSESSIONID=6B72F4F8469C0113D1544ACC1BA2A9FE
via:WTP/1.1 WAPGW-6.wh.monternet.com (Nokia WAP Gateway 3.1/ECD9/3.1.53), HTTP/1.1 HTTPPRXY-4[0A0000D4] (Traffic-Server/4.0.9 [uSc ])
x-network-info:GPRS,10.139.155.216,13951615696,211.139.172.70,unsecured
x-forwarded-for:10.139.155.216
x-up-calling-line-id:13961665696
x-source-id:211.139.172.70
x-nokia-connection_mode:CMODE
x-nokia-bearer:GPRS
x-nokia-gateway-id:NAWG/3.1/Build53
client-ip:10.0.0.144
accept:终端可以接受的媒体类型;
user-agent:终端的型号和其它一些信息;//这个现在已经取不到了
accept-charset:终端可以接受的编码集;
accept-language:可以接受的语言;
cookie:终端发上来的cookie啦,一些状态信息;
via:访问路径上通过了一个代理设备,这里就是WAPGW-6.wh.monternet.com 这个WAP网关啦,武汉的吧,呵呵;
client-ip:终端的IP啦;
x-up-devcap-screenpixels:120,140
x-up-devcap-msize:11,6
x-up-devcap-softkeysize:12
x-up-devcap-immed-alert:1
x-up-devcap-iscolor:1
x-up-devcap-screendepth:8
上面这几行都是终端设备的参数;
x-forwarded-for:10.139.155.216
wap网关的地址,需要走武汉的网关再到server;
x-up-calling-line-id:13961665696//这个现在已经取不到了
主叫线标识,就是主叫号码;
x-source-id:211.139.172.70
x-nokia-connection_mode:CMODE
连接模式,wap2.0的两种访问模式之一;
x-nokia-bearer:GPRS
承载方式,为GPRS
x-nokia-gateway-id:NAWG/3.1/Build53
Nokia的wap网关的版本了