I need to implement an HTTP client in Java, and for my needs it seems that the most efficient way to do this is to implement an HTTP pipeline (according to RFC2616 ).
As an aside, I want to forward the POST. (Also, Iām not talking about multiplexing. Iām talking about pipelining, that is, a lot of requests on a single connection before receiving HTTP request responses)
I could not find a third-party library that explicitly states that it supports pipelining. But I could use, for example. Apache HTTPCore to create such a client, or, if necessary, create it yourself.
The problem is that this is a good idea. I did not find any authoritative references to the fact that HTTP pipelining is more than a theoretical model and is properly implemented by HTTP servers. In addition, by default, all browsers that support pipelining are disabled.
So, should I try to implement such a client, or will I have a lot of problems due to the implementation of the server (or proxy). Is there any link that gives recommendations on these issues?
If this is a bad idea, what would be an alternative programming model for efficiency? Split TCP connections?
Cratylus
source share