CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


software:gui-designer:system-manager:http-request-commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:gui-designer:system-manager:http-request-commands [2013/03/05 04:26]
jarrod
software:gui-designer:system-manager:http-request-commands [2015/05/17 22:58] (current)
jarrod [HTTP/HTTPS Systems]
Line 9: Line 9:
     - Easiest method. ​     - Easiest method. ​
     - GET requests only.     - GET requests only.
-  - CF.request JavaScript function+  - [[http://​www.commandfusion.com/​docs/​scripting/​net.html#​cF.request|CF.request JavaScript function]]
     - Most powerful, but complicated method.     - Most powerful, but complicated method.
   - [[#​manually-crafted-commands|Manually crafted commands via TCP systems]]   - [[#​manually-crafted-commands|Manually crafted commands via TCP systems]]
     - Moderate complexity and flexibility.     - Moderate complexity and flexibility.
     - Not commonly used method.     - Not commonly used method.
- 
 ===== HTTP/HTTPS Systems ===== ===== HTTP/HTTPS Systems =====
 When you create a system in the guiDesigner System Manager, amongst the available protocol options are HTTP and HTTPS. These two options allow you to easily create HTTP GET Requests, either unsecured (HTTP), or secured (HTTPS). When you create a system in the guiDesigner System Manager, amongst the available protocol options are HTTP and HTTPS. These two options allow you to easily create HTTP GET Requests, either unsecured (HTTP), or secured (HTTPS).
Line 20: Line 19:
 To use HTTP or HTTPS systems, you enter the root hostname or IP Address of the HTTP end point as the system hostname property. Then define the port to use, most commonly port 80 for HTTP or port 443 for HTTPS.\\ To use HTTP or HTTPS systems, you enter the root hostname or IP Address of the HTTP end point as the system hostname property. Then define the port to use, most commonly port 80 for HTTP or port 443 for HTTPS.\\
  
-Then for the commands, all you have to enter is the request suffix. This should be the URL content after the hostname.+Then for the command values, all you have to enter is the request suffix. This should be the URL content after the hostname.
  
 So for example, if you control a device via a web browser with a URL such as:\\ So for example, if you control a device via a web browser with a URL such as:\\
 ''​http://​myhouse.dyndns.org:​8080/​transport?​action=playpause''​\\ ''​http://​myhouse.dyndns.org:​8080/​transport?​action=playpause''​\\
-Then the System Hostname would be ''​my house.dyndns.org''​ and port number ''​8080''​.\\+ 
 +Then the System Hostname would be ''​myhouse.dyndns.org''​ and port number ''​8080''​.\\
 The command value would be ''/​transport?​action=playpause''​. The command value would be ''/​transport?​action=playpause''​.
  
Line 61: Line 61:
   * http://​en.wikipedia.org/​wiki/​HTTP   * http://​en.wikipedia.org/​wiki/​HTTP
   * http://​en.wikipedia.org/​wiki/​HTTP_headers   * http://​en.wikipedia.org/​wiki/​HTTP_headers
 +
 +The Requestb.in website is great for debugging HTTP requests, more info on their website:\\
 +http://​requestb.in
software/gui-designer/system-manager/http-request-commands.1362457570.txt.gz · Last modified: 2013/03/05 04:26 by jarrod