cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] cURLpp::Cleanup

From: John Burnette <john.burnette_at_gmail.com>
Date: Mon, 23 Jan 2006 15:33:43 -0800

Hi,

I just started using cURLpp and so far it has been wonderful. I was looking
through the sample programs and came across the line:

cURLpp::Cleanup myCleanup

in all of the apps. What exactly does this do or what does it clean up?
Does it delete my handle? Where does this go in my code if I plan to reuse
the same handle during the lifetime of my program?

Also, I am trying to do something like this:

cURLpp::Easy requestHandle;

main()
{
...

  // use requestHandle.setopt( ) to set up for HTTP POST
  // set up a writeData function for handling responses from server

  start_thread( mythread );
...

}

mythread( ... )
{
  // perform POST
  request.perform();

  // For my application, I expect to get several separate replies from the
server although
  // I only sent one POST

  // need to use setopt( ) so that I can get every response. I know I got
the first response from
  // the previous call to perform( ), but now I need to get the rest of the
responses. NOT SURE HOW TO USE SETOPT TO DO THIS!!
  // Assume I parse each response so that I
  // know when I'm done (so I can set 'done')
  while( !done )
  {
      request.perform();

     // parse response body
  }

}

I'd appreciate any advice.

Thanks,

John

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET