我使用php+ajax學習進行網站建設,當使用 xmlHttp.setRequestHeader("content-length",Querystring.length); 時,在chorme里出現了這個錯誤,在webkit的瀏覽器里都會出現這個問題,請問如何解決呢?
1 回答

波斯汪
TA貢獻1811條經驗 獲得超4個贊
是的,實際上chrome是按照w3c標準來執行的
我把它摘錄出來
Terminate these steps if header is a case-insensitive match for one of the following headers:
Accept-Charset
Accept-Encoding
Connection
Content-Length
Cookie
Cookie2
Content-Transfer-Encoding
Date
Expect
Host
Keep-Alive
Referer
TE
Trailer
Transfer-Encoding
Upgrade
User-Agent
Via
也就是說,當你的header匹配以上字符時,這一步驟將被終止
- 1 回答
- 0 關注
- 103 瀏覽
添加回答
舉報
0/150
提交
取消