cURL / Mailing Lists / curl-library / Single Mail


How to disconnect when unexpectable data coming ?

From: 王 臻 <>
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:

This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2002-10-13