curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Check remote file exist with libcurl

From: Sztrepka Pál via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 17 Jan 2021 19:30:20 +0100

2021-01-17 17:14 időpontban Dan Fandrich via curl-users ezt írta:

> curl just sends the command. If it takes a long time to get a result,
> it's
> likely a server problem. -I should only return a very short result, so
> a delay
> could mean the server has to generate a large output dynamically, then
> throw it
> all away and return just the headers. This is the only way to get the
> Content-Length: for a dynamic URL, for example. Also, some servers
> don't
> support -I on some URLs and you'll a false result in those cases.

Yes, it's probably a server problem.
Downloading the same file from another server, I had the answer in an
instant.

> Dan
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-- 
Sztrepka Pál
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-17