How quickly disconnect http connection in MFC

drjackool 956 Reputation points
2021-09-08T04:53:39.913+00:00

Hi
In my app I need to get http message head information but some servers not support head method and I have to use GET, but in get message body is going to download so How to quickly can close the connection? is enough to call CHttpFile::Close function? Also how add byte-range data to the sending request?
Thanks

code order like this:
openrequest
send request
queryinfo
close

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,591 questions
{count} votes