| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curlpp mailing list Archives
[cURLpp] adding extra data
From: Wouter van Dongen <wvdongen_at_zonnet.nl>
Date: Fri, 15 Sep 2006 21:42:28 +0200
Hi,
I've got the following code in vb2005.net :
Public Sub ThreadFunc()
ThreadId
Dim easy As Easy
easy = New Easy()
easy.SetOpt(CURLoption.CURLOPT_URL, doelUrl)
easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf)
easy.SetOpt(CURLoption.CURLOPT_POST, 1)
easy.SetOpt(CURLoption.CURLOPT_SSL_VERIFYPEER, 1)
easy.SetOpt(CURLoption.CURLOPT_POSTFIELDS, strPost)
easy.Perform()
easy.Cleanup()
Next
End Sub
This is where the response goes to:
Public Function OnWriteData(ByVal buf() As Byte, ByVal size As Int32,
nrAangeroepen = nrAangeroepen + 1
NotifyUI(System.Text.Encoding.UTF8.GetString(buf))
Return size * nmemb
End Function
Threadfunc is a function that is multi threaded (I used the examle
So when curl makes a perform the thread-id must be sent allong, When curl
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info