The title pretty much says it all; It's easy enough to get the size of the headers in the server's response from WinHttp, but I need to know the TOTAL size of my request, including the HTTP version, verb, URL, and any random stuff the API is probably adding. I know there's an 8k limit to the total size of a single request, but providing 8k of headers results in an error.
Do I really have to manually add up all the stuff required by the HTTP standard to get the total request size? Seems like there ought to be a function.