The Language Reference says:

If a FolderItem is passed, the data will be downloaded to that file. 

I think that means it's expecting a folder item which is a *file* rather than a folder as in your code. I would try something like this:

f = DesktopFolder.child("myfile")

Does that work?

--Peter

On Jul 3, 2006, at 9:32 AM, Craig Hoyt wrote:

I'm trying to implement on of those 'check the web for newer version' routines. I have a text file that contains just a version number on my web site. I use HTTPSocket to retrieve this file and compare against the current version of my app. All this does work. If my app has a newer version I have a button appear in my about window which should let the used download a newer version to their desktop. I'm getting a error of 1 and it is reported immediately where I would expect a small delay before reporting an error. I can't seem to find out what error 1 is. All HTTP errors are in the hundreds range. If I use the HTTP RB example I can download the file but not from my app. Here's the code I'm using;

Dim mySocket As New HTTPSocket
Dim f As FolderItem
f = DesktopFolder
If f <> Nil then
mySocket.Yield = true
mySocket.Get( "http://mydomain/Updates/myfile"; , f)
else
beep
end if

_______________________________________________
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>

Reply via email to