Difference between revisions of "HTTP string: Send from AlphaCom"
From Zenitel Wiki
(→Create Event) |
|||
Line 14: | Line 14: | ||
===Create Event=== | ===Create Event=== | ||
Use EDO command to send HTTP GET on the configured port. | Use EDO command to send HTTP GET on the configured port. | ||
+ | <br> | ||
+ | [[File:Example.jpg]] | ||
+ | <br> | ||
+ | |||
EDO 1 "GET /triggerevent?variable1=test1&variable2=test2 HTTP/1.1\r\nHost: 10.5.101.110\r\nConnection: Keep-Alive\r\n" | EDO 1 "GET /triggerevent?variable1=test1&variable2=test2 HTTP/1.1\r\nHost: 10.5.101.110\r\nConnection: Keep-Alive\r\n" | ||
EDO 1 "Accept: */*\r\n\r\n" | EDO 1 "Accept: */*\r\n\r\n" | ||
<br> | <br> | ||
There is a max-limit of 128 characters on EDIO ports, so if string exceeds this the command needs to be split up. | There is a max-limit of 128 characters on EDIO ports, so if string exceeds this the command needs to be split up. |
Revision as of 14:09, 5 September 2017
HTTP GET via EDO Port
You can send HTTP GET to third-party systems using EDO ports and Event Handler.
Set up EDO port
"System" -> "Serial Ports" -> Configure EDIO port
Port-Type: TCP/IP Client
IP-Address: destination IP
Port: destination port, usually 80 when HTTP.
Keep-Alive: off
Create Event
Use EDO command to send HTTP GET on the configured port.
File:Example.jpg
EDO 1 "GET /triggerevent?variable1=test1&variable2=test2 HTTP/1.1\r\nHost: 10.5.101.110\r\nConnection: Keep-Alive\r\n" EDO 1 "Accept: */*\r\n\r\n"
There is a max-limit of 128 characters on EDIO ports, so if string exceeds this the command needs to be split up.