I would like to handle HTTP on very low level – at the moment I’m stuck with HTTP CONNECT verb. It looks like HttpListener doesn’t have access to these request because they are handled somewhere inside HTTP API or HTTP.SYS. I’m able to handle such requests with native TcpListener but in such case I would lose all HTTP functionality = I would implement HTTP from scratch.
I also checked FiddlerCore but it also handles these requests on some Win API layer. Is there any pure .NET HTTP stack?
Edit: I’m working on HTTP proxy with some additional request analysis and statistics so I don’t want to lose HTTP parsing and in the same time I want to know about SSL connections.
Ok. Again the problem is not in API but in developer 🙂
I have some test suite to test my implementation but the test suite was connecting directly (not as to a proxy) – that was the first problem. The second problem was that this test suite should use
TcpClientinstead ofHttpWebRequestif I want to test Connect verb separately becauseHttpWebRequestuses it only internally when using proxy for HTTPS.