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] Using cURLpp::Options::WriteStream

From: Andrew Kowpak <Andrew.Kowpak_at_diskstream.com>
Date: Tue, 9 Jan 2007 10:24:33 -0500

Hello,

 

            I am having a lot of trouble getting WriteStream to work.
I'm trying to get a directory listing from an FTP server and store it in
a stream. So far, I have tried the following:

 

stringstream ss;

request.setOpt( new WriteStream( &ss ) );

request.setOpt( new CustomRequest( "NLST " + path ) );

request.perform();

 

When the perform runs, the program seg faults.

 

I've also tried using an fstream, ofstream and ostream in place of the
stringstream with no luck. If I use WriteFunction instead of
WriteStream, the function I call gets called properly and I can output
to the console, but, that's not what I want to do.

 

Can anyone let me know what I'm doing wrong?

 

Thanks,

 

Andrew Kowpak, EIT, BSE

Software Developer

DiskStream Inc.

v: (519) 579-8166 x58

f: (519) 579-9746

http://www.diskstream.com

 

This communication is intended to be received by the individual or
entity to whom or to which it is addressed and may contain information
that is confidential and/or subject to copyright or other forms of
intellectual property protection. Any unauthorized use, copying, review
or disclosure is prohibited. If received in error, please contact me by
return e-mail or at the telephone number shown above. Thank you.

 

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET