DownloadFile problems
- Juan Carlos
- Posts: 920
- Joined: Mon Sep 06, 2010 1:02 pm
DownloadFile problems
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?
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
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"})
- Juan Carlos
- Posts: 920
- Joined: Mon Sep 06, 2010 1:02 pm
Re: DownloadFile problems
Thank you, uffs, I hadn't though in need the plugin.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"})
- Juan Carlos
- Posts: 920
- Joined: Mon Sep 06, 2010 1:02 pm
Re: DownloadFile problems
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?
"Error initializing cURL!"
MorphOS hasn't AmiSSL v4, perhaps the problem is here?
- Juan Carlos
- Posts: 920
- Joined: Mon Sep 06, 2010 1:02 pm
Re: DownloadFile problems
Under Windows the error message is:
"Unknown protocol in URL!"
"Unknown protocol in URL!"
Re: DownloadFile problems
Hi Juan,..
when I checked
Like @jpv suggested it works for me. I have downloaded the desktoptheme succesfully.
when I checked
Code: Select all
@REQUIRE "hurl"
DownloadFile("https://www.morguesoft.eu/Miscelaneus/MyDesktop01.jpg", {File = "MyDesktop01.jpg", Adapter = "hurl"})
WaitKeyDown("Return")
Re: DownloadFile problems
AmiSSL v4 is required on all Amiga compatibles, including MorphOS. You can install 68k version from Aminet and it works under MorphOS.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?
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.
- Juan Carlos
- Posts: 920
- Joined: Mon Sep 06, 2010 1:02 pm
Re: DownloadFile problems
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.jPV wrote: ↑Thu Dec 12, 2019 5:34 pmAmiSSL v4 is required on all Amiga compatibles, including MorphOS. You can install 68k version from Aminet and it works under MorphOS.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?
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.
Thanks for your offset but I don't need your routine because it doesn't work on Windows.
- airsoftsoftwair
- Posts: 5626
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: DownloadFile problems
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.
- Juan Carlos
- Posts: 920
- Joined: Mon Sep 06, 2010 1:02 pm
Re: DownloadFile problems
Well, and why the simple code doesn't work?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.