Jump to content

Control Stargate with Network Resources


CCline

Recommended Posts

:?: I'm trying to control relays on my Stargate with network resources.

This URL encoded command works in a web browser to turn off relay 7:

"http://192.168.1.11/sendcommand2.cgi?var1=%23%23%253300194000&var2=str&var3=%23%230&var4=UserName&var5=Password"

How do I set that up in network resources?

Link to comment

When I run Test I get error "Request Failed" and "N/A" in Resource Response.

I'm not sure if you meant to leave the % out shown in red below, I tried both ways.

/sendcommand2.cgi?var1=##%3300194000&var2=str&var3=##0&var4=UserName&var5=Password

"var3" is the string returned by Stargate when successful.

Link to comment

The % is part of the string being sent (##%3300190101)

I notice when I check Encode URL, it replaces the % with %25 but doesn't replace the # with %23 as shown in the "Resource Editor.jpeg".

I've tried entering them myself without checking and changed timeout to 5 seconds.

The "Browser.jpg" shows the command returns "##0"

post-7336-140474164535_thumb.jpg

post-7336-140474164542_thumb.jpg

Link to comment

Path:

/sendcommand2.cgi?var1=%23%23%253300190101&var2=str&var3=%23%230&var4=UserName&var5=Password

 

Actual:

GET /sendcommand2.cgi?var1=%23%23%253300190101&var2=str&var3=%23%230&var4=UserName&var5=Password HTTP/1.1

Host: 192.168.1.11:8083

User-Agent: Mozilla/4.0

Connection: Close

Content-Type: application/x-www-form-urlencoded

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...