Is there a way to only get the head? Seems like it’s a waste dealing with the body, when dealing with meta.
In bash you can use curl -I https://example.com
But that’s the only way I know, and I’m guessing Probably not what you’re looking for?
1 Like
Seeking optimization of:
https://yusi-dev.hstn.me/versioning/main.php?file=social/services/get_meta.php
A quick Google search tells me that the cURL options CURLOPT_NOBODY
and CURLOPT_HEADER
can be used to only retrieve header information without retrieving the body.
As shown here:
https://stackoverflow.com/questions/1378915/header-only-retrieval-in-php-via-curl
5 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.