New HTTP protocol and test code