File availability

File availability

Postby Natter » Wed Jul 21, 2021 8:29 am

Hi,

Is it possible to check the presence of a file on the web by URL ?
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: File availability

Postby Enrico Maria Giordano » Wed Jul 21, 2021 10:16 am

You can try to download it and check the return code. Maybe slow, but it should work.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: File availability

Postby Natter » Wed Jul 21, 2021 10:43 am

Thanks.
Checking for the presence of a file is the first thing that comes to mind. But I thought there was some more interesting way
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Re: File availability

Postby cnavarro » Thu Jul 22, 2021 10:19 am

Or use server FTP/SFTP for your files, or GITHUB API
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: File availability

Postby Natter » Thu Jul 22, 2021 11:35 am

FTP/SFTP
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 114 guests