saygi - 2014-02-16

hello, everyone.

I've made a class for LibCurlNet using c# winforms I'm having trouble downloading image It is working on most sites however on some sites it only downloads half of the picture not all.

Please look at the code I posted on below link
http://pastebin.com/ieyRhHNT

and this is how i call the class HTTPGetImage.

    int status = 0;
    HTTP curl = new HTTP();
    curl.CurlInit();
    Image myImage = curl.HTTPGetImage(textBox1.Text, ref status);

    if (status == 200)
        pictureBox1.Image = myImage;

can anyone please tell me what i'm doing wrong.

however I found a c code which it does work on all sites without any issues here's the link http://pastebin.com/iEixsFuK can anyone help me convert this code to c# thank you.