curl-users
My buffer in a variable - c#
Date: Sun, 16 Nov 2008 15:31:32 +0000
Hello everybody,
I am using libcurl.net to retrieve a web page source code and treat it.
I can connect and get a page source code (following the easyget.cs example),
but when I try with the specific page I need, it seems the size of the
buffer is too small, I just get the end of the source code..
public static Int32 OnWriteData(Byte[] buf, Int32 size, Int32
nmemb,Object extraData){
String mydata =
System.Text.Encoding.UTF8.GetString(buf);
return size * nmemb;
}
mydata retrieves only a part of the web page source code..
How to get whole page source code, whatever size it is?
I believe the answer must be easy, but I'm getting really frustrated with
this problem, so if somebody could give me a little hand, it would be great.
Thanks in advance ;)
Clem
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-11-16