cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] HeaderData Option

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Tue, 12 Sep 2006 16:42:15 +0200

Hello,
  I'm currently migrating my software from gcc 3.3.3, libcurl 7.11.0 and curlpp 0.5.0-rc6 to gcc 4.1.1, libcurl 7.15.5 and curlpp 0-7-0-pre2.

  Since I have to parse the header lines received by a HTTP_REQUEST in my program, I used the "HeaderFunction" Option to set the function pointer and the "HeaderData" option to pass the data structure my callback function uses to store the header lines.
In cURLpp, you use "functORS" not "functIONS". Basically, a functor is an object with an "operator( )" doing the job. The object holds all the data that you need (hence cURLpp uses the right cURL stuff to store the pointer in your back). So put your WriteFunction (or Header/ReadFunction) object and put state info inside.

Armel

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2006-09-12

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET