K
K
khodos_dmitry2018-05-20 19:58:26
HTML
khodos_dmitry, 2018-05-20 19:58:26

Is it possible to check the html page by link or not before the full download?

It can be a video file or a program. How to check? I use php, curl when downloading.
In general, you need to download html pages and not download anything else.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2018-05-20
@ThunderCat

curl -I some.url
check response for Content-Type: text/html;

P
Pavel, 2018-05-21
@yapaha

Make a HEAD request, and look at the Content-Type

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question