cURL / Mailing Lists / curl-library / Single Mail


Re: How to detect end of headers?

From: Daniel Stenberg <>
Date: Mon, 23 Feb 2009 22:08:23 +0100 (CET)

On Mon, 23 Feb 2009, Piotr Dobrogost wrote:

> I guess reading arbitrary header's value is a common task. Have you thought
> about adding the ability to register a header callback for given set of
> headers?

No I haven't really done that. But yeah, with a decently implemented string
matching-algorithm (Aho-Corasick perhaps?) that does something better than
just comparing strings in a loop it could make sense.

Received on 2009-02-23