In php, i'm looking to scrap some urls with file_get_contents.
For most of urls, it's working, but for some urls, like walmart.com, buybuybaby.com.
The source code is quiet simple, but there is a trick to extract those kind of urls (walmart.com ...) ??
I tried with file_get_contents, and also with curl, but still not working
thank you by advance for any help
$url="http://www.buybuybaby.com/";
$homepage = file_get_contents($url);
echo $homepage;
the error : Warning: file_get_contents(https://www.buybuybaby.com/): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request