Hello, experts. Perhaps even the question is incorrect - please excuse me, I ask to the best of their knowledge.
Have a link:
https://coinmarketcap.com/currencies/ripple/histor...
If parsim this link - everything is OK, the content freely receive.
Have a link:
https://coinmarketcap.com/currencies/ripple/histor...
Parsim her boss, all is lost!
Return only the headers:
HTTP/1.1 200 OK
Date: Sat, 09 Dec 2017 20:46:28 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d8e678f8b85d743e319149482103afb421512852387; expires=Sun, 09-Dec-18 20:46:27 GMT; path=/; domain=.coinmarketcap.com; HttpOnly; Secure
CF-Cache-Status: EXPIRED
Server: cloudflare-nginx
CF-RAY: 3caad05fad0a83ee-KBP
Please tell us how to put the second link. Three hours of searching on Google gave no results...
Configure cUrl with the following:
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36");
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, THIS, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- Roman_Fadel84 commented on June 10th 19 at 16:32