Loïc Hoguin
734f57aa8a
ct: Throw garbage at the server then check if it's still up.
...
Basically:
cat /dev/urandom | nc host port
Only run this test if cat and nc are available.
2011-04-17 13:36:51 +02:00
Loïc Hoguin
cb60d18e82
Initial draft-hixie-thewebsocketprotocol-76 support.
2011-04-14 21:21:17 +02:00
Loïc Hoguin
c32db277c8
Fix a bug where dupe headers were sent in cowboy_http_req:reply/4.
...
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-14 01:32:02 +02:00
Loïc Hoguin
0ef66b78f7
ct: Add a test for requests pipelining.
2011-04-10 02:43:30 +02:00
Loïc Hoguin
f05953516b
ct: Add a test for \n which throws an error 400.
2011-04-09 15:45:25 +02:00
Loïc Hoguin
6ec20b736e
Limit the number of empty lines to allow before the request-line.
...
Defaults to 5. Prevents someone from indefinitely sending empty lines.
2011-04-09 15:28:41 +02:00
Loïc Hoguin
c79df567be
ct: Add tests for incomplete requests leading to a timeout.
2011-04-09 13:53:22 +02:00
Loïc Hoguin
21dc1cc546
ct: Add raw tests to check that errors are properly handled.
2011-04-09 12:59:53 +02:00
Loïc Hoguin
3a776b146e
Initial work on a ct test suite for the HTTP protocol.
...
Handles two basic tests for both HTTP and HTTPS.
Also renames 'make test' into 'make tests'.
2011-04-08 16:30:37 +02:00