Rinnegatamante / lpp-3ds

Lua Player Plus for 3DS
GNU General Public License v3.0
179 stars 32 forks source link

Cannot download a file hosted via https #32

Closed Straitjacket99 closed 8 years ago

Straitjacket99 commented 8 years ago

Network.downloadFile("https://3ds.titlekeys.com/downloadenc/", "/encTitleKeys.bin")

Downloaded bin comes out as 0 bytes.

Edit: I'm using the latest nightly

Rinnegatamante commented 8 years ago

Hostname resolver cannot resolve subdomains actually.

Straitjacket99 commented 8 years ago

So what do I have to do? Is this going to be fixed in a following nightly?

Rinnegatamante commented 8 years ago

You have to use "direct" link to the resource (no "redirects" due to subdomains).

Straitjacket99 commented 8 years ago

That is the direct link though AFAIK. It doesn't have an extension.

Rinnegatamante commented 8 years ago

http://titlekeys.com/SOMETHING is the direct link, 3ds.titlekeys.com is a subdomain. You can try to use Socket module instead of Network one.

Straitjacket99 commented 8 years ago

Ahh, I see. Thanks.