You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by heinrichheine <ma...@vitaphone.de> on 2011/09/05 13:57:09 UTC

Pushed XML-payload via http is put in headers as
Hi,
i have a jetty http endpoint that receives XML data via http post.
I realized that the payload is put into the header of a message, thats
normal, but the key of the key=value pair in the header for the payload is
"<? xml version" and the value is the rest of my xml payload.

As my payload begins with "<xml version="1.0" encoding="UTF8"?>...." camel
seems to take the first part of the payload until the first "=" as key and
the rest as value.
Is this a known issue?
I use Camel 2.5
I'm pushing to the endpoint using #>curl -d @filename
"http://127.0.0.1:55000"

Greetings
 martin

--
View this message in context: http://camel.465427.n5.nabble.com/Pushed-XML-payload-via-http-is-put-in-headers-as-xml-version-payload-tp4770235p4770235.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Pushed XML-payload via http is put in headers as Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Could it be the curl command is wrong?
To use a file you may have to use the -f option. Google curl a bit, such as
http://superuser.com/questions/149329/how-do-i-make-a-post-request-with-the-curl-command-line-tool

On Mon, Sep 5, 2011 at 1:57 PM, heinrichheine
<ma...@vitaphone.de> wrote:
> Hi,
> i have a jetty http endpoint that receives XML data via http post.
> I realized that the payload is put into the header of a message, thats
> normal, but the key of the key=value pair in the header for the payload is
> "<? xml version" and the value is the rest of my xml payload.
>
> As my payload begins with "<xml version="1.0" encoding="UTF8"?>...." camel
> seems to take the first part of the payload until the first "=" as key and
> the rest as value.
> Is this a known issue?
> I use Camel 2.5
> I'm pushing to the endpoint using #>curl -d @filename
> "http://127.0.0.1:55000"
>
> Greetings
>  martin
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Pushed-XML-payload-via-http-is-put-in-headers-as-xml-version-payload-tp4770235p4770235.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/