cURL / Mailing Lists / curl-library / Single Mail


Re: Using libcurl with regex.h issue

From: Dan Fandrich <>
Date: Sat, 21 Feb 2009 16:16:04 -0800

On Sat, Feb 21, 2009 at 05:54:15PM -0500, Chris Dickson wrote:
> I've been using libcurl for retrieving web pages and noticed an odd problem
> when I started to incorporate regular expressions into my program using
> regex.h. Before I included regex.h in the program I would be able to retreive a
> web page of any size in its entirety, but after the inclusion of regex.h the
> HTML is getting cut off at what seems like an arbitrary spot in the file. The
> only thing I can think of is that there is some constant with the same name
> defined in both curl.h and regex.h that is unintentionaly limiting the amount
> of data that curl will download. I have not received any compiler warnings that
> would suggest that though. No function call to any of the regex.h functions is
> needed for the problem to arise, simply the inclusion of the header file is
> enough to cause it.
> Has anyone seen this happen / know a fix to this problem?

Are you sure it isn't just a coincidence? It could be a preexisting problem in
the app that happened to show itself after that change. Are you rebuilding
libcurl when this happens or just the app?

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-02-22