Getting Remote Files With ASP Continued - Let’s Code
(Page 2 of 5 )
What we need to do first is retrieve and parse the request from the query string. Then you can add in whatever simple or complex license checking algorithm you want in the indicated space. Then we call the subroutine - called PerformUpate() - that creates XML to return to the client.
Dim sGenKey, sCurrentVersion, fsoFileObject, objStream, xmlDOMDocument
If ( Request.ServerVariables("HTTP_METHOD") = "GET" ) Then
sGenKey = Trim(Request.QueryString("sGenKey"))
sCurrentVersion = Trim(Request.QueryString("sCurrentVersion"))
' do processing here to validate the License Key
Set fsoFileObject = CreateObject("Scripting.FileSystemObject")
Set objStream = Server.CreateObject("ADODB.Stream")
Set xmlDOMDocument= Server.CreateObject("Msxml2.DOMDocument.4.0")
Call PerformUpdate()
Set fsoFileObject = Nothing
Set objStream = Nothing
Set xmlDOMDocument= Nothing
End If
Next: PerformUpdate() Explained >>
More ASP Code Articles
More By Justin Cook