Downloading a file from the site

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Downloading a file from the site

#1 Post 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?

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Downloading a file from the site

#2 Post by Eugene Lutsenko »

I made a program for downloading pdf-files from absolute hyperlinks located on the site (the source text is attached)
Attachments
_DownloadArticles.zip
(63.77 KiB) Downloaded 170 times
Last edited by Eugene Lutsenko on Tue Mar 22, 2022 8:44 am, edited 2 times in total.

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: Downloading a file from the site

#3 Post by hz_scotty »

no download, please check
best regards
Hans

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Downloading a file from the site

#4 Post 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


Post Reply