Sub ConnectionAvailable()As String

     dim http as new HTTPSocket
       http.yield = true
       dim temp as String = http.get("http://www.yoursite.com";, 5)
        if len(temp) > 0 then
              return temp
        else
             // No connection
      end if

Johan Simons

On 11/04/2007, at 12:39 PM, Dr Bob Jansen wrote:

> Can anyone point me to an example of using the HTTPSocket to pull a  
> file from a web server and access its contents in RB code. I am  
> hoping to avoid downloading it to a file and instead have the  
> contents allocated to an RB variable.
>
> The documentation of HTTPSocket leaves a bit to be desired and the  
> examples in the online manual I find not too helpful.
>
> bobj
> -----------------------------------
> Dr Bob Jansen
> Turtle Lane Studios Pty Ltd
> PO Box 26, Erskineville NSW 2043, Australia
> Ph: +61-414 297 448
> Skype: bobjtls
> http://www.turtlelane.com.au
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to