curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Last-Modified header

From: James Read via curl-library <>
Date: Thu, 21 May 2020 15:46:33 +0100


I'm implementing a simple web crawler with curl and want to retrieve the
Last-Modified header so I can implement a sensible recrawl policy. I've
found which is a nice easy way
to retrieve the Content-Type header. Is there a similarly easy way to
retrieve the Last-Modified header? Or I do I need to parse the header

If I need to parse the header myself I found which prints headers to a
file. Is there a way of just storing the headers in memory so I can parse
them there? I don't want to have to write a file just to read it again.

James Read

Received on 2020-05-21