[Gambas-user] HttpClient

Christopher cperrin88 at ...467...
Sun Jun 17 15:31:08 CEST 2007


I'm not sure if it helps but try:

IF NOT EOF(h) THEN READ #h, buffer, Lof(h)

I haven't tryed it and I haven't used gambas for a long time but it might help.


Mark Carter schrieb:
> 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 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>   





More information about the User mailing list