Archived Forum Post

Index of archived forum posts

Question:

MFc/C++ Http Library - Do I need all the .h files?

Jan 05 '16 at 17:41

Hi,

I'm evaluating the C++ HTTP library. In the include folder inside the zip file, there are about 5MB of .h files. I want to add as few files as possible.

I'm only planning to use the following functions:

http.AddQuickHeader
http.quickGetStr (calling an https url)

Is there anyway I can find out which .h files I need and which ones I can leave behind?

Thanks


Answer

You only need to include the headers for the classes you use.

If you use CkHttp, then include "CkHttp.h"
If you use CkXml, then include "CkXml.h"
etc..