with(request) {
open('POST','http://foo.com/echo',0),
setRequestHeader('User-Agent', 'wmpajax'),
setRequestHeader('Accept-Language','el'),
setRequestHeader('Ignore-This', null),
setRequestHeader('accept-encoding', 'Carmigian'),
setRequestHeader('connectiON', 'user-agent'),
setRequestHeader('content-length', 2),
setRequestHeader('contEnt-Transfer-encoding', 'chunked'),
setRequestHeader('date', '1 jan 1929'),
setRequestHeader('expect', 'stand-on-one-leg'),
setRequestHeader('host', 'www.apple.com'),
setRequestHeader('kEep-Alive', 'and well'),
setRequestHeader('reFeRer', "http://google.com/"),
setRequestHeader('Te', 'kori'),
setRequestHeader('traIler', 'x-foo'),
setRequestHeader('transfer-encoding', 'gzip'),
setRequestHeader('upgrade', 'HTTP/7.0'),
setRequestHeader('via', 'http://1.2.3.4/'),
setRequestHeader('proxy-whatever', 'eetewvw'),
setRequestHeader('sec-otnoned', 'eeetewvw'),...
                   ...............
                   ...............
                   ...............以上的代码中,setRequestHeader('via', 'http://1.2.3.4/'),这一句是什么意思呢?用用winhttp对象的时候,从来没有发现过setrequestheader方法,中有设置via这个值的?请问这是什么意思呢?并且我也经常在碰到以下的代码:echo: web-proxy,debug     GET http://checkip.dyndns.org/ HTTP/1.1
echo: web-proxy,debug     User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
echo: web-proxy,debug     Host: checkip.dyndns.org
echo: web-proxy,debug     Cache-Control:
echo: web-proxy,debug     X-Proxy-ID: 1808505099
echo: web-proxy,debug     X-Forwarded-For: 202.59.206.85
echo: web-proxy,debug     Via: 1.1 202.59.206.66 (Mikrotik HttpProxy)这些代码中的 X-Proxy-ID: 1808505099  这个x-proxy-id代表什么呢?懂的各位达人,麻烦知道的告知一下了  

解决方案 »

  1.   

    就是通过代理去模拟访问吧.x-proxy-id是他的系统中有几个代理服务器吧.
      

  2.   

    via是经由的意思,应该是检测网络通路,也就是会经过哪些路由器,哪些代理吧?
      

  3.   

    权威的当然去看官方的RFC文档。
    如果不要求很详细的话,baidu,google  一下http头。能找到不少相关的资料了
      

  4.   

    http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
    Via  Informs the server of proxies through which the request was sent.  Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1)