DownloadFile problems

Find quick help here to get you started with Hollywood
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

DownloadFile problems

Post 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?
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: DownloadFile problems

Post 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"})
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: DownloadFile problems

Post 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.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: DownloadFile problems

Post 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?
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: DownloadFile problems

Post by Juan Carlos »

Under Windows the error message is:
"Unknown protocol in URL!"
LarsB
Posts: 72
Joined: Sat May 06, 2017 4:37 pm

Re: DownloadFile problems

Post 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.
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: DownloadFile problems

Post 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.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: DownloadFile problems

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DownloadFile problems

Post 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.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: DownloadFile problems

Post 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?
Post Reply