0
我們的一些設備(與SIM卡,它的調制解調器)的recieving從我們的服務器這個HTTP響應:Controling HTTP響應
HTTP/1.1 200 OK\r\nCache-Control: no-cache\r\nConnection: close\r\nContent-Length: 686\r\n
Content-Type: application/vnd.wap.xhtml+xml\r\n
Date: Thu, 05 Jul 2012 15:04:21 GMT\r\n
Vary: Accept-Encoding\r\n\r\n
<?xml version="1.0"?>\n<!DOCTYPE html PUBLIC"-//WAPFORUM//DTD XHTML Mobile 1.0//EN" \n
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >\n\n
<html xmlns="http://www.w3.org/1999/xhtml">\n <head>\n
<title>* Error *</title>\n
<!-- \n
Change href="style.css" below to the file name and\n
relative path or URL or URL
of your external style sheet.\n
--> \n
<!-- \n
<link rel="stylesheet" href="style.css" type="text/css"/>\n
<style> document-wide styles would go here </style>\n
-->\n
</head>\n
<body>\n
<h1>Sorry</h1>\n\t\t<ul>\n\t\t The requested item could not be loaded!<br/>(Status Code: 500)\n\t\t</ul>\t \n\t</body>\n</html>\n
,它是造成問題的設備,因爲他們無法解析此響應。他們期待500個代碼(服務器錯誤),因爲發送了錯誤的請求,並且我確信apache服務器正在發送500個代碼?
預期的反應是這樣的:
HTTP/1.0 500 Internal Server Error\r\n\
Date: Thu, 05 Jul 2012 14:16:23 GMT\r\n
Server: Apache/2.2.20 (Ubuntu)
Vary: Accept-Encoding..
Content-Length: 0\r\n
Connection: close\r\n
Content-Type: text/html\r\n
是否有可能移動網關發送對此有何反應?我的意思是,網關改變了迴應? 如何避免這種情況,或者我需要做些什麼來確保已發送的響應正在客戶端接收。
在此先感謝和抱歉,我的英語不好