遇一个很奇怪的问题。
就是我有一个表单用
Post
方式提交在
IE
上测试的时候,总是返回下面的信息。
我试过清
cookies,
删历史文件,还两台机子上结果都一样。
|
The page cannot be displayed
|
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.
|
如果用
GET
方式提交,又没有问题。。
还有就是用
Post
方式提交的时候,在
FireFox
上又能正常运行。
从日志上看
Catalyst
处理是正常运行了的,而且我试过用
nc
发送请求。反回的数据也是正常的。
大家有谁遇到过类似的情况,就是请求正常处理但是出现。“
The Page cannot be displayed”.
这个问题是由于IE的Bug引起的。在启动Catalyst::Engine::Http时,加上-k或-f可以解决。
关于这两个参数的解释如下:
Options:
-d -debug force debug mode
-f -fork handle each request in a new process
(defaults to false)
-? -help display this help and exits
-host host (defaults to all)
-p -port port (defaults to 3000)
-k -keepalive enable keep-alive connections
-r -restart restart when files got modified
(defaults to false)
-rd -restartdelay delay between file checks
-rr -restartregex regex match files that trigger
a restart when modified
(defaults to '/.yml$|/.yaml$|/.pm$')
-d -debug force debug mode
-f -fork handle each request in a new process
(defaults to false)
-? -help display this help and exits
-host host (defaults to all)
-p -port port (defaults to 3000)
-k -keepalive enable keep-alive connections
-r -restart restart when files got modified
(defaults to false)
-rd -restartdelay delay between file checks
-rr -restartregex regex match files that trigger
a restart when modified
(defaults to '/.yml$|/.yaml$|/.pm$')
下面的返回的数据。
HTTP/1.0 200 OK
Connection: close
Date: Sun, 04 Jun 2006 08:24:13 GMT
Content-Length: 1139
Content-Type: text/html; charset=utf-8
Status: 200
X-Catalyst: 5.6902
<html>
<head>
<title>MYSP</title>
</head>
<body>
<h2>Current users are:</h2>
<p>
<table>
<tr>
<td>Username</td><td>Password</td>
</tr>
<tr>
<td>test</td><td>test</td>
</tr>
<tr>
<td>deonwu</td><td>test</td>
</tr>
</table>
</p>
<h1>Create a new user</h1>
<p> the user exists: username = cb </p>
<form action="/user/create" method="post">
<p>User Name: <input type="text" name="username"/></p>
<p>Password: <input type="password" name="password"/></p>
<p>Confirm Password: <input type="password" name="password2"/></p>
<p><input type="submit" name="submit" value="submit"></p>
</form>
</body>
</html>