Most of the site sources, opens with a simple request, usualy by file_gets_contents()
or curl_init()
.
I've tried a lot of combinations of stream_context_create()
and curl_setopt()
, and none returned any thing different of 400 bad request.
Is there an explanation for why some server-sites ( like https://phys.org/ ) do not return de source code by quoted methods?
obs.: if you were able to get the source of the exemple ( https://phys.org/ ), using file_gets_contents() or curl_init()
, or any other method with php, please post the code, thanks.