In fact, the picture is also a local picture. But it is indeed "remote", and remote pictures can also be understood as pictures of URL addresses. Use the packet capture tool tcpdump to listen to the local port 80:
Then visit test.php, the screenshot of the key part of the captured package is as follows: You can see that the content of the picture has also been requested back. It is finally determined that get_headers is a GET request. If you want to initiate a HEAD request, you can use fsockopen or curl. Test code download (including pictures): test code for php function get_headers |