一個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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章