R
R
roskoshinsky2016-04-24 15:53:32
PHP
roskoshinsky, 2016-04-24 15:53:32

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

1 answer(s)
D
Dimonchik, 2016-04-24
@dimonchik2013

serverfault.com/questions/469824/curl-disable-cert...
but it can also fire the user agent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question