cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: glibc detected invalid pointer

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Wed, 18 Nov 2009 11:57:06 -0600

On Nov 18, 2009 at 11:47 AM, Angus March wrote:

> headerlist = curl_slist_append(headerlist, "DELE " + *iter);

You can't pass a std::string to libcurl.
Better use something like: ("DELE " + *ite).c_str()

Also make sure headerlist is initialized to NULL before you use it.

 - Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-18

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET