by spydum · 12y ago · 0 comments
https://github.com/ninenines/cowboy/blob/master/src/cowboy_p...
I'm guessing around here would be interesting to add a test case to handle.
As far as whose server this is? I'd guess Heroku or AWS, though it's plenty possible T-Mobile could have devised some proxy to inspect traffic, but seems unlikely they would do so with Cowboy?
$ cat <<EOF | nc example.herokuapp.com 80
GET /test HTTP/1.1
EOF
----
HTTP/1.1 505 HTTP Version Not SupportedRequest
printf 'GET / HTTP/1.1\r\nHost: example.herokuapp.com\r\n\r\n' | nc example.herokuapp.com 80
Response HTTP/1.1 200 OK
Connection: keep-alive
Server: SimpleHTTP/0.6 Python/2.7.6
Request printf 'GET / HTTP/1.1\r\nHost: example.herokuapp.com\r\n\r\n' | nc example.herokuapp.com 80
Response HTTP/1.1 505 HTTP Version Not Supported
Connection: close
Server: Cowboy