I see many questions matching to my issue. But none of them is providing any workable solution. so instead of making complex functionality i need simple solution. Please I dont' want cURL. I've already done a lot with this code.
I'm working on a scraping project and need to load the contents of product revisions from ebay.
I am using PHP function
file_get_contents();
Here is the URL i'm troubling with.
https://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemRevisionDetails&item=272908801183
this file_get_contents(); is working perfectly fine on different URLs but don't know why not on this.
This is the code i'm using.
<?php $html = file_get_contents('https://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemRevisionDetails&item=272908801183'); echo $html; ?>
but i'm getting this error..
Warning: file_get_contents(https://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemRevisionDetails&&item=272908801183): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /Users/samz/Documents/projects/scraping/test.php on line 3