aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2011-05-04Add cowboy_http_req:port/1.Loïc Hoguin
Returns the port given in the Host header if present, otherwise the default port of 443 for HTTPS and 80 for HTTP is returned.
2011-04-17ct: Throw garbage at the server then check if it's still up.Loïc Hoguin
Basically: cat /dev/urandom | nc host port Only run this test if cat and nc are available.
2011-04-14Initial draft-hixie-thewebsocketprotocol-76 support.Loïc Hoguin
2011-04-14Fix a bug where dupe headers were sent in cowboy_http_req:reply/4.Loïc Hoguin
Now the server defines default headers that can be overwritten by the handler simply by passing them to the reply/4 function. Default headers include, for now, Connection and Content-Length headers. Note that it isn't enough to change the Connection header to close a keep-alive connection server-side.
2011-04-10ct: Add a test for requests pipelining.Loïc Hoguin
2011-04-09ct: Add a test for \n which throws an error 400.Loïc Hoguin
2011-04-09Limit the number of empty lines to allow before the request-line.Loïc Hoguin
Defaults to 5. Prevents someone from indefinitely sending empty lines.
2011-04-09ct: Add tests for incomplete requests leading to a timeout.Loïc Hoguin
2011-04-09ct: Add raw tests to check that errors are properly handled.Loïc Hoguin
2011-04-08Initial work on a ct test suite for the HTTP protocol.Loïc Hoguin
Handles two basic tests for both HTTP and HTTPS. Also renames 'make test' into 'make tests'.