cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John-M Baker <>
Subject HTTP multipart/form-data and REST
Date Wed, 07 May 2008 14:21:46 GMT

Using the CXFServlet and REST, wget can be used to post a file to a URL 
defined as a post operation:

wget --post-file file.xml url

And wget makes the following HTTP submission:

$ nc -p 1234 -l
POST /blah/push HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Host: localhost:1234
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 599

<?xml version="1.0" encoding="UTF-8"?>
<myxml> ...

Is it possible to replicate this with a browser file submission? Or 
rather, is it possible for a POST operation to be defined so the data is 
taken from an HTTP parameter name? The browser submits a file as 
multipart/form-data but this does not appear to work when submitting to a 
URL that would otherwise handle a wget file post. 


John Baker
Web SSO 
IT Infrastructure 
Deutsche Bank London



This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.

Please refer to for additional EU corporate
and regulatory disclosures.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message