Cmake HTTP UserAgent

CMake’s UserAgent is like


as seen with CMake script:

file(DOWNLOAD ${url} result.html)

examining result.html at a diagnostic website that returns user agent will have like:


This is worth noting if you find an HTTP server that blocks CMake HTTP traffic such as file(DOWNLOAD …), but not a web browser. This same problem can happen with Python as server operators may tire of scripts scraping their content. So web scrapers simply get more sophisticated and the “war” rages on….