davedoc
08-12-2008, 01:18 AM
In my client script I have managed to get the table of TrueUpdate servers and iterate over that to find a good one using GetServerFile().
I'm now working in the server file and need to pull the "location" attribute out of the Server that I ended up connecting to. For instance right now I just have this coded to
g_SourceURL = "myserver.com/updates/myProduct/update_" .. g_AvailableVersion .. ".exe"
I need to find a way to iterate over the list again and replace the myserver.com with the name where I downloaded the server script file from in the client.
I've looked through the help and I can see that I'll probably use HTTP.TestConnection to see if I have a connection to each URL, but how can I iterate over the list pulling the location attribute?
I'm now working in the server file and need to pull the "location" attribute out of the Server that I ended up connecting to. For instance right now I just have this coded to
g_SourceURL = "myserver.com/updates/myProduct/update_" .. g_AvailableVersion .. ".exe"
I need to find a way to iterate over the list again and replace the myserver.com with the name where I downloaded the server script file from in the client.
I've looked through the help and I can see that I'll probably use HTTP.TestConnection to see if I have a connection to each URL, but how can I iterate over the list pulling the location attribute?