Hi - I'm sending an SCI request via a Perl Script to a pc gateway to set an xbee pin. It works perfectly but I get an "500 Internal Server Error" returned. Web host says it's nothing on their end.- it must be script. I've tried ruby and python too and I get the same result. Works but error returned. Anyone know what I need to do in the script to handle this? The script is being called from html file. ty
$user_agent = LWP::UserAgent->new;
# Sets The Request up for Basic Authentication.
# Replace YourUsername and YourPassword with your username and password respectively.
'Device Cloud WS',
# XML Data to be sent in the Request Body.
$request = '<!--
See http://www.digi.com/wiki/developer/index.php/Rci for
an example of a python implementation on a NDS device to
handle this SCI request
<at hw_address="00:00:00:00:00:00:00:00!" command="D0" value="4" apply="true" />
# Performs a post to Device Cloud and captures response.
'Content-Type' => 'text/xml',
'Content' => $request);
# Prints the Response Content.
# If Device Cloud determines that the request wasn't successfully processed, die with the error message.