cURL / Mailing Lists / curl-users / Single Mail

curl-users

Newbie Help Needed - Posting XML File to URL

From: Piskulic, Kristin <Kristin.Piskulic_at_maritz.com>
Date: Wed, 8 Sep 2004 09:59:18 -0500

Help, I'm not sure what to try next. Currently, I am manually posting an XML file to a URL with the following contained within the XML file:
             :
        <form name="frmXML" action="receiveOrder.asp" method="POST">
                 <input type="button" name="btnDirect" value="Send by POST"
onClick="javascript: document.frmXML.action = 'https://test.testsite.com/xml/receiveOrder.asp'; document.frmXML.submit()">
        <br>
        <textarea name="OrderXML" cols="60" rows="35">
        <?xml version="1.0" encoding="UTF-8" ?>
        <XML_Orders>
                <Order>
                        <Hold_Order_Header>
                                <confirm_num/>.... data follows.....

So, I've tried the following in command line CURL from a UNIX-Sun box:

        curl -v -o test.bat -F @testfile.htm --trace-ascii test.txt
        -H "Content-Type:text/xml" -F onClick="javascript:document.frmXML.action='https://test.
        testsite.com/xml/receiveOrder.asp';document.frmXML.submit()" https://test.testsite.com/xml/receiveOrder.asp

The website responds and gives me the following:
        <?xml version="1.0"?><Order><response_code>30</response_code></Order>
Which returns a response_code = 30 is invalid XML format from the test URL site so I know the data is getting there ... or something is getting there. Any suggestions as to what to try next?
Thanks,
Kristin

Confidentiality Warning: This e-mail contains information intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or copying of this e-mail is strictly prohibited. The sender does not accept any responsibility for any loss, disruption or damage to your data or computer system that may occur while using data contained in, or transmitted with, this e-mail. If you have received this e-mail in error, please immediately notify us by return e-mail. Thank you.
Received on 2004-09-08