Wiki example with curl error

Version 1
    This document was generated from CDN thread

    Created by: Nataraj Nayak on 21-02-2009 02:05:42 AM
        I am trying to execute the example under the Wiki section of this community named "Testing AXL with CURL" as is- by only changing the IP address to our call manager's IP and the user name in the command line.  My CCM administrator says he has enabled AXL capabilities for this user.  Our call manager version is 5.1.3.
       I am getting the following error, while trying to execute the curl command (I have tried to scale down the error message):
    C:\Program Files\curl-7.19.3>curl -k -u ipphoneadminaxl -H 'Content-type: text/xml;' -H 'SOAPAction: "CUCMB ver=5.0"' -d @request.
    Enter host password for user 'ipphoneadminaxl':
    curl: (6) Could not resolve host: text; Host not found
    curl: (6) Could not resolve host: CUCMB ver=5.0'; No data record of requested type
    <html><head><title>Apache Tomcat/5.0 - Error report</title><style>....
    style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><b>type</b> Exception report<b>message</b> <
    u></u><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></
    p><b>exception</b> javax.servlet.ServletException: Unable to internalize message
    <b>root cause</b> com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
    <b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs.</u><HR size="1" n
    oshade="noshade"><h3>Apache Tomcat/5.0</h3></body></html>
       Can anyone help me in understanding what is wrong?

    Subject: RE: Wiki example with curl error
    Replied by: David Staudt on 21-02-2009 07:05:01 AM
    Looks like you are seeing a problem with the difference between how Linux and Windows handle quotes in the command line (the example was based on Linux.)  Since CM5 doesn't include the SOAPHeader versioning feature anyway, you can try something like this:
    C:\>curl -k -u ipphoneadminaxl -H "Content-type: text/xml;" -d @request.xml

    Subject: RE: Wiki example with curl error
    Replied by: Nataraj Nayak on 23-02-2009 08:18:29 AM
    Thanks David!  It works....