curl-users
Re: Download head of file
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 3 Sep 2006 14:03:49 -0700
Date: Sun, 3 Sep 2006 14:03:49 -0700
On Sun, Sep 03, 2006 at 09:09:18PM +0300, Oleg Lomaka wrote:
> I develop a service where users enter an url and script should download
> this page to process. But one may enter the url of huge file I don't
> want to download. But it is need to view first few kbytes.
How about: curl http://example.com | head -c 2048 ?
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2006-09-03