I'm currently trying to optimize http-based data transfer between several applications.
Our current approach, downloading first and then creating the post-request, obviously add extra IO/memory load and latencies, which I'd like to circumvent.
The core question of all:
Is it required to send a "Content-Length" header in HTTP POST requests?
IIRC, HTTP 2616 declares that it's optional, but I'm not sure how applications actually behave at this point.
question from:
https://stackoverflow.com/questions/14758729/http-post-content-length-header-required 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…