[Gambas-user] Getting a web page with curl

daniel.campos at ...338... daniel.campos at ...338...
Tue Oct 26 16:03:06 CEST 2004


Hi:

HttpClient works asynchronously, so...

Dim x as New HttpClient
x.Url = "http://www.google.com"
x.Get
...
After "Get" you've to wait until the page is received
....
TextBox1.Text = x.Peek()


Look at the HttpGet example from Gambas, there you can find how a web page
is
received, using the events provided by HttpClient class to know when there's
data
to read, and when all the page has been received.

Regards,

D. Campos




>-- Mensaje Original --
>To: gambas-user at lists.sourceforge.net
>From: ihernandez at ...478...
>Subject: [Gambas-user] Getting a web page with curl
>Reply-To: gambas-user at lists.sourceforge.net
>Date: Tue, 26 Oct 2004 10:41:42 +0000
>
>
>Hello. i'm trying to get a web page into a textbox.
i did this but it fails:

Dim x as New HttpClient
x.Url = "http://www.google.com"
x.Get
TextBox1.Text = x.Peek()

What can i do?
Thanks!
Ivan



-----------------------------------------
>-------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://prod
>ctguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




Envíanos tus fotos digitales.
Te las revelamos en papel de máxima calidad y te las llevamos a la puerta
de casa.
¡Verás qué cómodo!

http://foto.tiscali.es







More information about the User mailing list