[Gambas-user] HttpClient
Mark Carter
mcturra2000 at ...370...
Sun Jun 17 15:02:19 CEST 2007
I'm wondering how to use HttpClient. I've written a function:
PUBLIC SUB blah()
DIM h AS HttpClient
DIM buffer AS String
h = NEW HttpClient AS "h"
h.URL = "http://www.google.com"
h.Get
PRINT "begin"
IF Lof(h) THEN READ #h, buffer, Lof(h)
PRINT buffer
PRINT "end"
END
When I execute it, it prints out begin and end, but the buffer appears to be empty. What do I need to do?
___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
More information about the User
mailing list