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

Developer technologies C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.