Page 1 of 4

DownloadFile problems

Posted: Wed Dec 11, 2019 2:04 pm
by Juan Carlos
I have some problems with the DownloadFile instruction with my site it shows me the error message "Unknown protocol in URL!"
with this instruction:
DownloadFile("https://www.morguesoft.eu/Miscelaneus/MyDesktop01.jpg", {File = "MyDesktop01.jpg"})

even with this
SetNetworkProtocol(#IPV4)
DownloadFile("https://www.morguesoft.eu/Miscelaneus/MyDesktop01.jpg", {File = "MyDesktop01.jpg", Fail404=True, Protocol=#IPV4, SSL=True})

Perphap the problem is for the ssl protocol unsupported with Hollywood?

Re: DownloadFile problems

Posted: Wed Dec 11, 2019 7:08 pm
by jPV
Use the hURL plugin for HTTPS URLs:

Code: Select all

@REQUIRE "hurl"
DownloadFile("https://www.morguesoft.eu/Miscelaneus/MyDesktop01.jpg", {File = "MyDesktop01.jpg", Adapter = "hurl"})

Re: DownloadFile problems

Posted: Wed Dec 11, 2019 11:12 pm
by Juan Carlos
jPV wrote: Wed Dec 11, 2019 7:08 pm Use the hURL plugin for HTTPS URLs:

Code: Select all

@REQUIRE "hurl"
DownloadFile("https://www.morguesoft.eu/Miscelaneus/MyDesktop01.jpg", {File = "MyDesktop01.jpg", Adapter = "hurl"})
Thank you, uffs, I hadn't though in need the plugin.

Re: DownloadFile problems

Posted: Thu Dec 12, 2019 12:02 pm
by Juan Carlos
Well, I tested the code under MorphOS and only I get one window requester with this message:
"Error initializing cURL!"
MorphOS hasn't AmiSSL v4, perhaps the problem is here?

Re: DownloadFile problems

Posted: Thu Dec 12, 2019 1:42 pm
by Juan Carlos
Under Windows the error message is:
"Unknown protocol in URL!"

Re: DownloadFile problems

Posted: Thu Dec 12, 2019 2:46 pm
by LarsB
Hi Juan,..

when I checked

Code: Select all

@REQUIRE "hurl"

DownloadFile("https://www.morguesoft.eu/Miscelaneus/MyDesktop01.jpg", {File = "MyDesktop01.jpg", Adapter = "hurl"})
WaitKeyDown("Return")
Like @jpv suggested it works for me. I have downloaded the desktoptheme succesfully.

Re: DownloadFile problems

Posted: Thu Dec 12, 2019 5:34 pm
by jPV
Juan Carlos wrote: Thu Dec 12, 2019 12:02 pm Well, I tested the code under MorphOS and only I get one window requester with this message:
"Error initializing cURL!"
MorphOS hasn't AmiSSL v4, perhaps the problem is here?
AmiSSL v4 is required on all Amiga compatibles, including MorphOS. You can install 68k version from Aminet and it works under MorphOS.

I have made own download function which checks all these things and tells to user what he is missing/needs. I can paste it here some other time, but I don't have time today, maybe tomorrow or some other day.

Re: DownloadFile problems

Posted: Fri Dec 13, 2019 2:07 pm
by Juan Carlos
jPV wrote: Thu Dec 12, 2019 5:34 pm
Juan Carlos wrote: Thu Dec 12, 2019 12:02 pm Well, I tested the code under MorphOS and only I get one window requester with this message:
"Error initializing cURL!"
MorphOS hasn't AmiSSL v4, perhaps the problem is here?
AmiSSL v4 is required on all Amiga compatibles, including MorphOS. You can install 68k version from Aminet and it works under MorphOS.

I have made own download function which checks all these things and tells to user what he is missing/needs. I can paste it here some other time, but I don't have time today, maybe tomorrow or some other day.
But the same problema with Windows? Because I made the Code with Hollywood IDE in Windows 10 and after I did the test under MorphOS, because some intructions wok of diferent way on every system.
Thanks for your offset but I don't need your routine because it doesn't work on Windows.

Re: DownloadFile problems

Posted: Fri Dec 13, 2019 4:04 pm
by airsoftsoftwair
On Windows and all other platforms you'll also need hURL if you need SSL support. The only difference to Amiga systems is that you don't need any additional software besides hURL because Windows obviously supports SSL through the operating system.

Re: DownloadFile problems

Posted: Sat Dec 14, 2019 12:53 pm
by Juan Carlos
airsoftsoftwair wrote: Fri Dec 13, 2019 4:04 pm On Windows and all other platforms you'll also need hURL if you need SSL support. The only difference to Amiga systems is that you don't need any additional software besides hURL because Windows obviously supports SSL through the operating system.
Well, and why the simple code doesn't work?