How to get html code of the page, if it redirects?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
how to get html code of the page that would put the news, if it has DDoS protection https://www.mzv.cz ?
by | 10 views

1 Answer

0 like 0 dislike
Through curl:

CURLOPT_FOLLOWLOCATION TRUE to follow any header "Location:" sent by the server in its response (note that this happens is recursive, PHP will follow all send header "Location: ", except in the case when a constant CURLOPT_MAXREDIRS).


To turn off redirect:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 14, 2019 by bro-dev
0 like 0 dislike
1 answer
asked Apr 15, 2019 by Icqibo
110,608 questions
257,186 answers
0 comments
36,595 users