L
L
lue merg2018-05-03 13:50:16
Parsing
lue merg, 2018-05-03 13:50:16

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

how to get the html code of the page to parse the news if it has ddos ​​protection https://www.mzv.cz ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Koch, 2018-05-03
@amux

You can use curl:
To disable redirect:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question