Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using a download manager to get files over HTTP(S) #196

Open
handicraftsman opened this issue Mar 6, 2021 · 6 comments
Open

Allow using a download manager to get files over HTTP(S) #196

handicraftsman opened this issue Mar 6, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@handicraftsman
Copy link

This would be a nice feature in case somebody posts a link to an HTTP(S) resource in a gemtext file, as it would allow easier file download without either using such a manager manually or starting a heavy web browser.

@skyjake
Copy link
Owner

skyjake commented Mar 7, 2021

This could go together with #135 and #66 so that wget/curl gets called in the background to handle the actual HTTP(S) request. Then it would appear like a regular download inside Lagrange.

@skyjake skyjake added the enhancement New feature or request label Mar 7, 2021
@handicraftsman
Copy link
Author

Oh, nice!

@0v3rCl0kEd
Copy link

Wouldn't using wget or curl break lagrange on windows? There is wget for windows from gnuwin32 project but not everyone uses it so it's not a good choice to rely on it.
I think you could use .net framework to download files but I think it would be a bit to hacky.

@skyjake
Copy link
Owner

skyjake commented Mar 12, 2021

Hmm, the Windows build is MSYS2 based. I think an MSYS2 build of wget or curl could be included with Lagrange, if we go this route.

I don't think it's appropriate to add a dependency on .NET. I haven't looked through the Win32 APIs with this in mind, but maybe there's something useful in there.

@0v3rCl0kEd
Copy link

From what I read on the internet, windows 10 now ships with curl installed but it would still be a problem for windows 7/8.
I think you can also download things with some powershell commands so it might be doable without more dependencies.

@handicraftsman
Copy link
Author

From what I read on the internet, windows 10 now ships with curl installed but it would still be a problem for windows 7/8.
I think you can also download things with some powershell commands so it might be doable without more dependencies.

It's curl has a different syntax. Also you can just ship a curl executable yourself, maybe just slightly renamed to avoid collisions on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants