cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to disconnect when unexpectable data coming ?

From: 王 臻 <writewang_at_hotmail.com>
Date: Sun, 13 Oct 2002 08:27:41 +0800

I am trying to write a auto-downloading web crawler . But I do not want to
download some file which are bigger then expected, for example bigger than
10M . So I decide to calculate the Content-Length , if Content-Length > 10
M , disconnet it . Can I still use the persistent connection capability?
Anyone please give me some hints how to perform operation like this with
efficient performance ?

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-13