You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/08/15 12:24:35 UTC
[jira] Created: (CAMEL-1913) camel-jetty - Should support
x-www-form-urlencoded posted data in the message body
camel-jetty - Should support x-www-form-urlencoded posted data in the message body
----------------------------------------------------------------------------------
Key: CAMEL-1913
URL: https://issues.apache.org/activemq/browse/CAMEL-1913
Project: Apache Camel
Issue Type: Bug
Components: camel-http, camel-jetty
Affects Versions: 2.0-M3
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.0.0, 2.1.0
See CAMEL-1801
It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56966#action_56966 ]
Christian Mueller commented on CAMEL-1913:
------------------------------------------
Any new ideas?
In my opinion, it's not possible to put the content of the file in the body, because the user could upload more than one file in one request. The sample from the spec is:
{code}
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="submit-name"
Larry
--AaB03x
Content-Disposition: form-data; name="files"
Content-Type: multipart/mixed; boundary=BbC04y
--BbC04y
Content-Disposition: file; filename="file1.txt"
Content-Type: text/plain
... contents of file1.txt ...
--BbC04y
Content-Disposition: file; filename="file2.gif"
Content-Type: image/gif
Content-Transfer-Encoding: binary
...contents of file2.gif...
--BbC04y--
--AaB03x--
{code}
When I try to map all of these information to the message exchange, I came to the following result:
The submitted form-data could be mapped into the header. We could create an attachment for each uploaded file. The file name is mapped to the name of the attachment. The content type is set as the content type of the attachment (which is an instance of DataHandler). This would be result in the following sample code:
{code}
Message in = exchange.getIn();
in.setHeader("submit-name", "Larry");
in.addAttachment("file1.txt", new DataHandler(new TextDataSource("file1.txt", "text/plain", file1Content)));
in.addAttachment("file2.txt", new DataHandler(new ImageDataSource("file2.txt", "image/gif", file2Content)));
{code}
I don't know, if Camel already uses/implements some javax.activation.DataSource classes we should use...
What do you think?
Regards,
Christian
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.2.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1913:
-------------------------------
Fix Version/s: (was: 2.1.0)
2.2.0
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.2.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Ryadh Amar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54117#action_54117 ]
Ryadh Amar commented on CAMEL-1913:
-----------------------------------
While understanding that it should stay as it is, conforming to the spec, I still believe it should be in the body, the next endpoint could be a file, with an implicit converter which will pull the uploaded file from the request
in the case there are multiple attachments, the same implicit converter would be able to detect this fact, and produce the files.
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (CAMEL-1913) camel-jetty - Should
support multipart/form posted data in the message body better
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58305#action_58305 ]
Willem Jiang edited comment on CAMEL-1913 at 3/18/10 1:52 PM:
--------------------------------------------------------------
By leveraging the Jetty's MultiPartFilter, it's easy to implements this feature.
I also updated the wiki page for this feature.
was (Author: njiang):
By leverage the Jetty's MultiPartFilter, it's easy to implements this feature.
I also update the wiki page for this feature.
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 2.3.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56989#action_56989 ]
Claus Ibsen commented on CAMEL-1913:
------------------------------------
The Message API already supports attachments.
See addAttachment, getAttachments etc.
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.2.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56990#action_56990 ]
Christian Mueller commented on CAMEL-1913:
------------------------------------------
@Claus,
I know this. My last post was my proposal how we could map the uploaded files into the message. I think the body is not the right place (or my knowledge about the Camel TypeConverter system is to bad). :-)
Regards,
Christian
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.2.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1913) camel-jetty - Should support
x-www-form-urlencoded posted data in the message body
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1913:
-------------------------------
Fix Version/s: (was: 2.0.0)
> camel-jetty - Should support x-www-form-urlencoded posted data in the message body
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53631#action_53631 ]
Claus Ibsen commented on CAMEL-1913:
------------------------------------
You could for instance upload multiple files in same POST so I wonder what is the correct solution with Camel
More details at
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-1913:
-----------------------------------
Assignee: Willem Jiang
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 2.3.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1913.
---------------------------------
Resolution: Fixed
By leverage the Jetty's MultiPartFilter, it's easy to implements this feature.
I also update the wiki page for this feature.
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 2.3.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1913:
----------------------------------
Assignee: (was: Claus Ibsen)
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53630#action_53630 ]
Claus Ibsen commented on CAMEL-1913:
------------------------------------
Whether it should be stored in the body directly or as an attachment I really dont know.
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1913:
-------------------------------
Description:
See CAMEL-1801
It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
For instance sending a file using curl
{code}
curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
{code}
You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
{code}
------------------------------30cc29f24df6
Content-Disposition: form-data; name="data"; filename="plain.txt"
Content-Type: text/plain
Hello World
This is the second line
------------------------------30cc29f24df6--
{code}
was:
See CAMEL-1801
It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
Summary: camel-jetty - Should support multipart/form posted data in the message body better (was: camel-jetty - Should support x-www-form-urlencoded posted data in the message body)
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.1.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1913) camel-jetty - Should support
multipart/form posted data in the message body better
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1913:
-------------------------------
Fix Version/s: (was: 2.2.0)
2.3.0
> camel-jetty - Should support multipart/form posted data in the message body better
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-1913
> URL: https://issues.apache.org/activemq/browse/CAMEL-1913
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http, camel-jetty
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Fix For: 2.3.0
>
>
> See CAMEL-1801
> It does not work as expected as the posted data should be in the *body* and not as it does currently stored as a message header with the body as a key and with an empty value!
> For instance sending a file using curl
> {code}
> curl -F data=@src/test/data/plain.txt http://localhost:9080/myapp/myservice
> {code}
> You want Camel to provide the file content in the body and the other as headers. But what you get in the body is
> {code}
> ------------------------------30cc29f24df6
> Content-Disposition: form-data; name="data"; filename="plain.txt"
> Content-Type: text/plain
> Hello World
> This is the second line
> ------------------------------30cc29f24df6--
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.