POSTing XML to the Phones...

Version 1
    This document was generated from CDN thread

    Created by: Scott Brescia on 25-11-2009 04:46:15 PM
    Perhaps this is over my head and someone can point me in the right direction... But here's my problem.  I found a site (http://markmail.org/message/d7gjmewexcdsaa6q) that showed me how to POST stuff to the IP phones.  I wrote a script using AutoHotKey, that uses what I learned in that thread with WGET to POST commands to the phone.  However, the format of the files is confusing.  I try to send XML files directly to the phone, and I get 404 not found errors.  If it's a text file in this format:
     
    XML=%3CCiscoIPPhoneExecute%3E%3CExecuteItem+Priority%3D%220%22+URL%3D%22Key:Soft3%22%2F%3E%3C%2FCiscoIPPhoneExecute%3E
     
    It works.  If I format that in a more human-readable way:
    <CiscoIPPhoneExecute>
        <ExecuteItem URL="Key:Soft3"/>
    </CiscoIPPhoneExecute>
     
    It doesn't work.  Why is this?  How can I get files into that "flat" format I posted above?  I guess I'd like a deeper understanding of how this actually works.  I've been referencing the Cisco documentation (http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/all_models/xsi/5_0_2/english/programming/guide/ipphsv.html) and I want to try some of the other XML code that they mention, but I can't figure out how to post it to the phone.  Any help/guidance/links/whatever would be greatly appreciated.  Thanks!!

    Subject: RE: POSTing XML to the Phones...
    Replied by: Piotr Sapiejewski on 07-12-2009 11:49:26 AM
    Try to send it through php forms.
    I.Ex. one of my codes:
     
    <?php
    header("Content-type: text/xml");
    echo '<CiscoIPPhoneExecute>';
    echo '<ExecuteItem URL="<service url>" />';
    echo '</CiscoIPPhoneExecute>';
    ?>
     
    When I try to send it like xml file then I have errors.
     
    Regards,
    Piotr

    Subject: RE: POSTing XML to the Phones...
    Replied by: Girisha Srinivasa on 16-08-2011 03:17:42 AM
    Hi,
    try this,
    it press settings on the phone
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <FORM action="http://<IP of phone>/CGI/Execute" Method="POST">
    <TEXTAREA NAME="XML" Rows="5" Cols="60">
    <CiscoIPPhoneExecute>
      <ExecuteItem URL="Key:Settings"/>
    </CiscoIPPhoneExecute>
    </TEXTAREA>
    <BR>
    <input type=submit value=POST>
    </FORM>
    </BODY>
    </HTML>