Discussion
Loading...

Discussion

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
daniel:// stenberg://
@bagder@mastodon.social  ·  activity timestamp 2 weeks ago

So tell me, what does a comparison of #wcurl and #wget need to include?

https://github.com/bagder/docs/blob/master/wcurl-vs-wget.md

  • Copy link
  • Flag this post
  • Block
vsz
@vsz@mastodon.social replied  ·  activity timestamp 2 weeks ago

@bagder With a tiny fix and a few extra steps, I managed to run #wcurl on Win dows: https://github.com/curl/wcurl/pull/73

  • Copy link
  • Flag this comment
  • Block
B'ad Samurai 🐐
@badsamurai@infosec.exchange replied  ·  activity timestamp 2 weeks ago

@bagder A difference? PowerShell v5 says curl and wget are just aliases of Invoke-WebRequest :D

  • Copy link
  • Flag this comment
  • Block
Petr Menšík :fedora:
@pemensik@fosstodon.org replied  ·  activity timestamp 2 weeks ago

@bagder I think #HappyEyeballs in curl should be mentioned. Very useful on lacking IPv6 connectivity. Https DNS record support is not it WGet, is it?

  • Copy link
  • Flag this comment
  • Block
Petr Menšík :fedora:
@pemensik@fosstodon.org replied  ·  activity timestamp 2 weeks ago

@bagder what I miss from curl is downloading multiple files, keeping their file names. WGet does that by default. How do I do: curl -LO https://example.org/file1.bin https://example.org/file2.png?

  • Copy link
  • Flag this comment
  • Block
daniel:// stenberg://
@bagder@mastodon.social replied  ·  activity timestamp 2 weeks ago

@pemensik you either do one -O for each URL since each URL needs info where store them, or you use --remote-name-all which is basically saying "use -O for all URLs"

  • Copy link
  • Flag this comment
  • Block
Petr Menšík :fedora:
@pemensik@fosstodon.org replied  ·  activity timestamp 2 weeks ago

@bagder nice. Has --remote-name-all some short variant? I like to use shell expansion like file{1,2,3,4}.bin. Option -O cannot be used with such expansion. Could wcurl do it by default perhaps?

  • Copy link
  • Flag this comment
  • Block
daniel:// stenberg://
@bagder@mastodon.social replied  ·  activity timestamp 2 weeks ago

@pemensik curl has its own "globbing" that -O works with:

curl -O "https://example.com/[1-1000].jpg" etc

  • Copy link
  • Flag this comment
  • Block
Petr Menšík :fedora:
@pemensik@fosstodon.org replied  ·  activity timestamp 2 weeks ago

@bagder would it work like pkg{,-test,-dev,-lib}? I use it to download rpm subpackages.

  • Copy link
  • Flag this comment
  • Block
daniel:// stenberg://
@bagder@mastodon.social replied  ·  activity timestamp 2 weeks ago

@pemensik https://curl.se/docs/manpage.html#GLOBBING

curl - How To Use

  • Copy link
  • Flag this comment
  • Block
1+ more replies (not shown)
DistroWatch
@distrowatch@mastodon.social replied  ·  activity timestamp 2 weeks ago

@bagder The thing I tend to be most interested in is if the tool can report remote file size without downloading the file.

  • Copy link
  • Flag this comment
  • Block
Redd
@redd@sueden.social replied  ·  activity timestamp 2 weeks ago

@bagder dependencies, executable file size, usability

  • Copy link
  • Flag this comment
  • Block
daniel:// stenberg://
@bagder@mastodon.social replied  ·  activity timestamp 2 weeks ago

@redd how do you compare usability?

  • Copy link
  • Flag this comment
  • Block
Redd
@redd@sueden.social replied  ·  activity timestamp 2 weeks ago

@bagder usefulness of error messages when something goes wrong? Maybe test cases like domain cannot be resolved, target not reachable,...?

  • Copy link
  • Flag this comment
  • Block
TFed 🍉🌻
@tfed@infosec.exchange replied  ·  activity timestamp 2 weeks ago

@bagder i was a wget user, but time comes when you have to curl

  • Copy link
  • Flag this comment
  • Block
Todor Petkov
@tppetkov@infosec.exchange replied  ·  activity timestamp 2 weeks ago

@bagder Wouldn't mind "--report-speed=bits" like in wget, to see the progress in bits. But this is more like for fancy output, not a real future

  • Copy link
  • Flag this comment
  • Block
daniel:// stenberg://
@bagder@mastodon.social replied  ·  activity timestamp 2 weeks ago

@tppetkov I'm documenting differences.

  • Copy link
  • Flag this comment
  • Block
Wolf480pl
@wolf480pl@mstdn.io replied  ·  activity timestamp 2 weeks ago

@bagder
how the default name of the destination file is computed

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login