I'd suggest just accessing it via http. Their dll is really rather poor and the comments/documentation were written by someone who clearly does not speak english as their first language...or they're from georgia. This isnt direct source or anything, it utilized my custom http class which has a fair amount of browser logic built into it. but it should give you a general idea of how to POST the picture to decaptcher. No, there isn't any reason for building the POST string the way I am instead of using stringbuilder...well, misguided laziness. But you get the picture. Anything else you need to know is available in decaptchers documentation.
Code:
* * *
** * *Dim http As New HTTPsession(SessionType.Standard)
** * *Dim resp As HttpResponse
** * *Dim bound As String = rndNum(15, False)
** * *Dim postData As String
** * *Dim sreq As New SearchRequisites
** * *Dim dRet As New DecaptcherReturn
** * *With http
** * * * .ConnectionTimeout = 15
** * * * .TransferTimeout = 90
** * * * .ContentType = "multipart/form-data; boundary=---------------------------" & bound
** * *End With
** * *With sreq
** * * * .AddAND("")
** * * * .AddAND("")
** * *End With
** * *bound = "-----------------------------" & bound
** * *postData = bound & vbNewLine & _
** * * * "Content-Disposition: form-data; name=""function""" & vbNewLine & vbNewLine & _
** * * * "picture2" & vbNewLine & bound & vbNewLine & _
** * * * "Content-Disposition: form-data; name=""username""" & vbNewLine & vbNewLine & _
** * * * name & vbNewLine & bound & vbNewLine & _
** * * * "Content-Disposition: form-data; name=""password""" & vbNewLine & vbNewLine & _
** * * * pw & vbNewLine & bound & vbNewLine & _
** * * * "Content-Disposition: form-data; name=""pict""; filename=""" & rndStr(10, True) & "." & fileExt & """" & vbNewLine & _
** * * * "Content-Type: " & fileType & vbNewLine & vbNewLine & _
** * * * img & vbNewLine & bound & vbNewLine & _
** * * * "Content-Disposition: form-data; name=""pict_to""" & vbNewLine & vbNewLine & _
** * * * "2" & vbNewLine & bound & vbNewLine & _
** * * * "Content-Disposition: form-data; name=""pict_type""" & vbNewLine & vbNewLine & _
** * * * PictType & vbNewLine & bound & "--"
Bookmarks