Answer the question
In order to leave comments, you need to log in
Strange behavior when accessing a file via http(s). How to download a file through CURL which issues 404?
Colleagues. Good afternoon. Here is the file https://lenta.ru/sitemap.xml When you click on the link through the browser, the file is downloaded. However, when accessing through the same curl + php - 404. Checked the headers ( http://www.bertal.ru) - really 404. However, on the basis of what does the browser download it? and most importantly, how to download it through curl + php, what options?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question