cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Prevent/confirm before dumping binary data to terminal?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 25 Feb 2014 22:51:05 +0100 (CET)

On Mon, 24 Feb 2014, Ramesh Dharan wrote:

> Iím curious if anyone has ever proposed an option to make curl behave
> similar to less with respect to binary data; i.e. when writing binary data
> to a TTY, first confirm with a prompt:
>
> $ curl http://example.com/somelargebinary.gz
> Output may be binary data. Print anyway?

No, I've not seen anyone suggest such an idea but I have to admit it sounds
rather attractive. Do you have any particular insights in how less or other
tools do the detection?

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-25