[Catalyst] Problem with POST from IE and Catalyst::Engine::HTTP
Andy Grundman
andy at hybridized.org
Fri Mar 23 22:48:31 GMT 2007
On Mar 23, 2007, at 4:38 PM, Ashley Pond V wrote:
> On Friday, Mar 23, 2007, at 13:47 US/Pacific, Andy Grundman wrote:
>> I believe Safari is fine, it doesn't have the same bug IE does.
>> Have you had problems with it?
>>
> Yep. I think I brought this up like … over a year ago. I'll go fire
> up a clean test app to make sure it's still an issue and not
> something left over from older development I've done.
>
> Yep. Starting a clean App with the test server just hangs Safari:
>
> Safari can’t open the page.
> Safari could not open the page “http://localhost:3000/” because
> the server stopped responding.
>
> -k has no effect. The debug output never shows the request at all.
> I *think* IE for Mac (not to support development for it, I know
> it's abandon-ware) had the same problem with earlier versions of
> Cat's test server but it did not have any trouble just now. I had
> the same problem on Safari years ago with a socket level chat
> server and it had to do with knowing when to stop reading the
> incoming request (that's why I was guessing it might be related to
> the char counting, line ending issue). Sorry I don't have the code
> in front of me to compare.
It dies on a GET request? Can you run your server like this:
CATALYST_HTTP_DEBUG=1 perl script/myapp_server.pl -d
Then repeat the same thing and add -k.
Here's my output for reference (non-keepalive):
New connection
Read 239 bytes
Parsed request: GET / HTTP/1.1
Parsed headers: bless({
"accept" => "*/*",
"accept-encoding" => "gzip, deflate",
"accept-language" => "en",
connection => "keep-alive",
host => "localhost:3000",
"user-agent" => "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en)
AppleWebKit/419 (KHTML, like Gecko) Safari/419.3",
}, "HTTP::Headers")
write: Wrote headers and first chunk (5807 bytes)
[info] *** Request 7 (0.123/s) [693] [Fri Mar 23 15:46:54 2007] ***
[debug] "GET" request for "/" from "127.0.0.1"
[info] Request took 0.007717s (129.584/s)
.----------------------------------------------------------------
+-----------.
| Action |
Time |
+----------------------------------------------------------------
+-----------+
| /default |
0.000750s |
| /end |
0.000199s |
'----------------------------------------------------------------
+-----------'
Request done
Closing connection
New connection
Read 303 bytes
Parsed request: GET /static/images/catalyst_logo.png HTTP/1.1
Parsed headers: bless({
"accept" => "*/*",
"accept-encoding" => "gzip, deflate",
"accept-language" => "en",
connection => "keep-alive",
host => "localhost:3000",
referer => "http://localhost:3000/",
"user-agent" => "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en)
AppleWebKit/419 (KHTML, like Gecko) Safari/419.3",
}, "HTTP::Headers")
write: Wrote headers and first chunk (13912 bytes)
Request done
Closing connection
More information about the Catalyst
mailing list