curl-library
multi info no messages
Date: Fri, 24 Jul 2009 14:14:08 +0000
I am using the .NET binding for a HTTP POST file upload. Once the file uploads and I check multi info there are no messages. The debug and progress functions work, hence I know the file upload is done but I never get any messages from multi info. I realise the .NET binding is old and tried to use a newer libcurl.dll but that didnt fix it
int stillRunning = 1;
CURLMcode result;
while ((result = multi.Perform(ref stillRunning)) == CURLMcode.CURLM_CALL_MULTI_PERFORM)
Thread.Sleep(100);
if (result != CURLMcode.CURLM_OK)
break;
multi.FDSet();
int rc = multi.Select(1000); // one second
MultiInfo[] minfo = multi.InfoRead();
if (minfo != null)
{
foreach (MultiInfo done in minfo)
{
Easy easy = done.EasyHandle;
multi.RemoveHandle(easy);
easy.Cleanup();
running--;
}
}
Basically multi.InfoRead() returns null always, I check that function since its part of the .NET binding which is old and might be the problem but it gets 0 messages from libcurl so I am thinking its something else, I am still new at cURL so I have probably done something wrong with how to use multi.
_________________________________________________________________
Looking for a place to rent, share or buy this winter? Find your next place with Ninemsn property
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Edomain%2Ecom%2Eau%2F%3Fs%5Fcid%3DFDMedia%3ANineMSN%5FHotmail%5FTagline&_t=774152450&_r=Domain_tagline&_m=EXT
Received on 2009-07-24