Does libcurl load complete page in single shot?

84 views Asked by At

I'm using libcurl to fire HTTP request.

Does lincurl load complete page in single shot, or for sub-links on page i.e. .css or. png file it request separately.

1

There are 1 answers

5
Captain Giraffe On BEST ANSWER

libcurl does not automatically send any sub-requests for any links in the requested resource. This would be a completely unreasonable behaviour for any linked media.

To retrieve linked media, you have to extract the links from the resource you initially retrieve, and then do separate requests for them as needed (just like a web browser does behind the scenes).