Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Http 1.1 protocol validation

Is there any service or library that can validate an http1.1 server?

I implemented a simple http server, and over a year or so I've been extending it as I need to such that I've got a pretty complete and functional http1.1 web/app server.

As a practical matter it works really well - e.g. it seems to serve things robustly to all the browsers I've tried, cUrl etc, but there are a million corner cases when you read the specs for http1.1. I'm sure I have all kinds of odd gremlins in there.

Is there a service that can make http requests to a server to validate the protocol, or a library that does this?

like image 316
Rafael Baptista Avatar asked Nov 12 '22 04:11

Rafael Baptista


1 Answers

Jigsaw is the W3C's reference implementation of HTTP 1.1 http://www.w3.org/Jigsaw/

You can probably use that to compare responses between your server and Jigsaw. If it doesn't have its own blackbox test suite, you might have to go through the RFC and create your own suite.

There are further resources here: http://www.w3.org/Protocols/HTTP/Forum/#Sample

This includes a reference to at least one HTTP 1.1 client library. You might use that, or any other one with good compliance to build your own black box tests.

like image 166
Marcin Avatar answered Nov 15 '22 07:11

Marcin