Thanks for the reply Giles,
After sending my request for help I did come across the 'Get' example
and I was able to read the file into my app. The post form example
doesn't seem to work for me as adapted from the example in the LR.
Knowing just what is obvious in this topic, the example seems to be
uploading the data (form) to a script. If this is the case I'll have
to find a CGI script for this. Using a different name to verify the
file is uploaded, my test shows nothing in the directory - I've
searched all directories too. Maybe we are talking about a different
example the the LR. The one I was using creates a dictionary, adds
key and data fields, sets the HTTPSocket object data to the form, and
uploads to the specified address. I see there is an HTTPSocket
content, type method, is this more appropriate, if how do I use it?
Oh, in my test I get no errors reported. Is it possible to do this
without a script handler on the server side? I would have assumed I
need a logon name and password for this or is that just FTP.
Craig
Message: 8
Subject: Re: Download/Upload files within RB
From: Giles Williams <[EMAIL PROTECTED]>
Date: Mon, 18 Sep 2006 07:09:49 +0100
For downloading, try something like this:
Dim ht As New HTTPSocket
Dim theResult As String = ht.Get( "http://google.com", 2 )
Note that the 2 is the timeout value.
For uploading, use a post form like the one the in LR.
Regards,
Giles Williams.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>