cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Need assistance

From: Piskulic, Kristin <Kristin.Piskulic_at_maritz.com>
Date: Tue, 28 Jun 2005 12:31:20 -0500

Yes, if I change method="GET" to method="POST" ... Everything works
fine. Currently I manually post this XML file to the URL. What I've
attached is the header chunk of the XML file .. The data has been left
off ...

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Bill Mercer
Sent: Tuesday, June 28, 2005 12:19 PM
To: curl-users_at_cool.haxx.se
Subject: Re: Need assistance

Is the attached really your XML data? It looks like you're trying to
send an HTML
submission form as the XML data, which I seriously doubt is what you
want.
Have you confirmed that your XML file is valid by using an alternate
method to deliver it?

>I am attempting to post an XML file to a URL from and HP Unix server.
>
>
> <html>
> <head>
> <META NAME="GENERATOR" Content="Microsoft
Visual
>Studio 6.0">
> <title>Testing Page</title>
> </head>
> <body>
> <b>Submit</b>
> <br>
> <form name="frmXML" action="receiveOrder.asp"
>method="GET">
> <input type="button" name="btnDirect"
>value="Send by POST" onClick="javascript: document.frmXML.action =
'http
> s://test.kpp.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>
>
>
>
>I am using the following from the command prompt in UNIX to send
this:
>
>
> curl -v -o kpp.bat -d @testfile.htm --trace-ascii kpp.txt -H
>"Content-Type:text/xml" https://test.kpp.com/xml/receivedOrder.asp
>
>
>Something is getting lost in the translation as the file appears to
make
>it, but responds with the following:
>
>
> <?xml
>version="1.0"?><Order><response_code>30</response_code></Order>
>
>
>Which translates to invalid XML format. 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.
>

                                       

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 2005-06-28