I will try to describe my issue as detailed as I can.
There is one live site at the moment, lets say http://example.com
I have one test site on a live server ,and I have modify my PC's hosts file as follows:
xx.xx.xx.xx example.com
xx.xx.xx.xx www.example.com
When I visit the example.com URL, I see my test website . However I have read some tutorials on how to check with curl if a URL returns 404 error etc.
I am trying to check some URLS with curl in PHP , in order to see which URLS return 404 error.
I have tried a lot different code samples, however they do not seem to work . Is there any way to make the curl to watch the test site, instead of the live one? I am trying to add header as curlopt , however it does not seem to see this URL.
Any ideas?