开发者

HTTP server correctness testing

开发者 https://www.devze.com 2023-04-10 15:41 出处:网络
I\'ve written a simple HTTP server, and I\'ve stumbled upon a few bugs so far that proved difficult to track down. For example, not adding a blank line between headers and content of a response, or gi

I've written a simple HTTP server, and I've stumbled upon a few bugs so far that proved difficult to track down. For example, not adding a blank line between headers and content of a response, or giving an incorrect challenge response for a WebSocket connection. With such bugs, it seems Firefox usually ignores them and displays the page anyway, and Chrome just closes the socket without giving any error message.

Is there a simple, free program out there that will place some requests to my server and report every little thing it does wrong, so I can track down these bugs? I'开发者_开发知识库ve seen a few such programs, but none free, and I don't really want to invest a lot into a hobby project. (Maybe Chrome even has a flag that makes it explain the problem when it closes a socket?)

I'm not as concerned about dealing with weird requests from a client (as Apache Test seems to focus on) - what I need to verify is that sane requests get correct responses that won't confuse the client.


Grab the tests for an existing server and pointing them at yours instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号