Forum Moderators: open
<%
dim user, auth, length, type, url, contents
' Your User ID
user = "123"
' Your Auth Code
auth = "28F21DZ"
' Length
length = "32"
' Type
type = "1"
' Create the url
url = "http://www.site.com/?user=" & user & "&auth=" & auth & "&length=" & length & "&type=" & type
' Query page
Set GetConnection = CreateObject("Microsoft.XMLHTTP")
GetConnection.Open "get", url, False
GetConnection.Send
contents = GetConnection.responseText
Set GetConnection = Nothing
' Check for errors
If (InStr(contents, "error") > 0) Then
response.write("There was an error generating your data!")
' Output serial key
Else
response.write("Thank you, your data is: " & contents)
End If
%>
If there are any errors please let me know! Also are there any better ways to improve this? Finally can anyone provide a .NET version of this?
Thanks