A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

LogicalHTTP Wrappers - with picture download

1.5k views · started by Chad ·
#1
LogicalHTTP Wrappers - with picture download
Alex wrote a function for downloading pictures and loading them into a picture box. He edited his http wrappers he made so heres an upload of them.

Heres an example:


Option Explicit
Dim StrHTML As String
Dim StrChall As String

Private Sub Command1_Click()
StrHTML = Wrapper.GetWrapper("http://api.recaptcha.net/challenge?k=6Lc96AAAAAAAANG1YKnED8OpogYLWtLStAMGVvv-", "http://www.gaiaonline.com/")

StrChall = Wrapper.Between(StrHTML, " challenge : '", "'")

Call Wrapper.DownloadFile("http://api.recaptcha.net/image?c=" & StrChall, "c:/captcha.jpg")
ImgCaptcha.Picture = LoadPicture("c:/captcha.jpg")
End Sub
#2
Maybe I should add some other functions to the wrapper. Can you think of any?

GZip decompression maybe. Should make it faster.
#3
Would be good, how about auto create file so it doesn't have to exist. And the compatible with HTTPS. >.>