waider: (Default)
waider ([personal profile] waider) wrote2004-03-09 02:39 pm
Entry tags:

stupid emacs tricks

(defun find-file-url( url )
(interactive
(list (read-string "Find URL: ")))
(shell-command (concat "wget -q -O - '" url "'")
(get-buffer-create url)))

(global-set-key "\C-x\C-h" 'find-file-url)

not curl?

[identity profile] sambushell.livejournal.com 2004-03-09 09:20 am (UTC)(link)
I thought a hip young thing like you would be all over curl, leaving wget far behind.
ext_181967: (Default)

Re: not curl?

[identity profile] waider.livejournal.com 2004-03-09 09:25 am (UTC)(link)
Meh. Does it do anything substantially better? Or is it just different? I learned wget first, and have only had to interface to curl due to its presence in PHP installations. Where I can safely say it's only ever caused me grief.

Really, though, I should be using open-network-stream, but then I have to do by hand all the proxy-handling and redirect-handling stuff that wget does automatically.

Re: not curl?

[identity profile] sambushell.livejournal.com 2004-03-11 03:54 pm (UTC)(link)
Does it do anything substantially better? Or is it just different?

I learned wget first too, but the transition isn't that painful.

Here, someone suggests:

Looking at the comparison chart between curl and snarf/wget/pavuk/fget/fetch, the answer may be simply -- development stopped on the others and continued on curl.

http://curl.haxx.se/docs/comparison-table.html
ext_181967: (Default)

Re: not curl?

[identity profile] waider.livejournal.com 2004-03-12 04:01 am (UTC)(link)
Mostly, it appears the features I'm missing are either features I wasn't using or features I wouldn't look for in a command-line client (HTTP ranges? is there any realistic use for this other than continuing an interrupted download, which wget does already?). Since it's no longer being developed, I guess wget is going to fall foul of bitrot at some point, but hey. It works for me for now.
ext_8707: Taken in front of Carnegie Hall (evil)

Re: not curl?

[identity profile] ronebofh.livejournal.com 2004-03-09 09:49 am (UTC)(link)
Of course, i'm very attached to FreeBSD's fetch.