Python coder here. How do I configure my ConnectPort X4 to "POST" to my own servers (not device cloud).

Hello all,

I have a ConnectPort X4, Ethernet version, and some Xbee devices reporting to it. It works fine, but I want to move away from using iDigi, and I want the gateway to POST to my servers.

I’m a decent Python programmer, but I couldn’t find any documentation or obvious ways to program the gateway to POST onto my own servers.

I’ve read through the Digi Web Progamming PDF and the Digi Python wiki, and numerous other Digi documentations.

Any help will be appreciated.



How about something like this?
import httplib
webservice = httplib.HTTP(“”)
webservice.putrequest(“POST”, “/mywebservice.php”)
webservice.putheader(“Host”, “”)
webservice.putheader(“User-Agent”, “Python post”)
webservice.putheader(“Content-length”, “%d” % len(Message))