I'm trying to write a simple ASP page which appears to be receiving the information passed to it correctly and creates the URL for the webpage that we need to run to move the camera as I can see by the information that is output to HomeSeer log, but the webpage with parameters does not seem to get executed.
If I copy the URl from the log and paste it into a browser it works fine but just won't run from this page.
As you can tell I'm just dabling in asp to do what I need to do here!
If I copy the URl from the log and paste it into a browser it works fine but just won't run from this page.
As you can tell I'm just dabling in asp to do what I need to do here!
PHP Code:
<%@ LANGUAGE=VBScript %>
<%
Dim direction
Dim pos
Dim url
pos = right(Request.QueryString("data"),1)
If pos = "0" then direction="6"
If pos = "1" then direction="4"
If pos = "2" then direction="2"
If pos = "3" then direction="0"
url = "http://192.168.0.189:89/decoder_control.cgi?user=ptz&pwd=ptz&command=" & direction & "&onestep=1"
hs.writelog "Foscam",url
Response.Redirect(url)
%>
Comment