Page 1 of 1

Downloading a file from the site

Posted: Wed Mar 16, 2022 1:31 pm
by Eugene Lutsenko
I found that the file is downloaded completely normally from one hosting, and when downloading from another site, instead of the file value, the following text appears: "This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support"

Normally:

Code: Select all

cFile := LoadFromURL("http://lc.kubagro.ru/LcWorks.txt")
Message:

Code: Select all

cFile := LoadFromURL("http://aidos.byethost5.com/LcWorks/LcWorks.txt")
With this option, the same thing:

Code: Select all

oHC     := HttpClient():new( "http://lc.kubagro.ru/LcWorks.txt" )
oHC     := HttpClient():new( "http://aidos.byethost5.com/LcWorks/LcWorks.txt" )
Does anyone know how to make it work in the second case?

Re: Downloading a file from the site

Posted: Wed Mar 16, 2022 11:43 pm
by Eugene Lutsenko
I made a program for downloading pdf-files from absolute hyperlinks located on the site (the source text is attached)

Re: Downloading a file from the site

Posted: Thu Mar 17, 2022 12:44 am
by hz_scotty
no download, please check

Re: Downloading a file from the site

Posted: Thu Mar 17, 2022 1:51 am
by Eugene Lutsenko
hz_scotty wrote: Thu Mar 17, 2022 12:44 am no download, please check
Maybe it's because I'm in Russia and you're in Austria? Try replacing the address with a page with links to your own and recompile. Everything works for me

Re: Downloading a file from the site

Posted: Thu Mar 31, 2022 8:44 am
by Eugene Lutsenko