PDA

View Full Version : Get File Version from HTTP Server


pramod
09-09-2008, 07:36 AM
Hello Friends,
When i try to get the version of exe from HTTP server then it return me nil

g_SourceURL = "http://www.sample.com/Elink/Test.exe";
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPUseBasicAuth = false;
g_HTTPAuthUsername = "";
g_HTTPAuthPassword = "";
g_HTTPUseSSL = false;
g_HTTPTransferType = MODE_BINARY;

g_TargetVersion=File.GetVersionInfo(SessionVar.Exp and("http://www.sample.com/Elink/Test.exe")).FileVersion;

It return the error code.

How to get the Version information from HTTP Server.

Thanks,
Pramod

upeters
09-09-2008, 08:14 AM
You will have to copy the file to a local folder first.

Ulrich

pramod
09-09-2008, 11:20 PM
You will have to copy the file to a local folder first.

Ulrich

thanks for suggestion but there are some any other solution of this problem.