一个Catalyst问题

遇一个很奇怪的问题。
就是我有一个表单用 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$')
 
下面的返回的数据。
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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值