rajtrivedi2001 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

REST Client should provide multipart/form-data boundary setting #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Need to invoke a webservice with multipart/form-data input
2. Currently we can not set the boundary in REST Client GUI

See the forum entry
http://groups.google.com/group/rest-
client/browse_thread/thread/7852b269d2ac8534?hl=en

What is the expected output? What do you see instead?
I can set the Content-Type and charset, but can not set the boundary for 
multipart/form-data
For multipart/form-data, see 
p://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 

What version of the product are you using? On what operating system?
restclient-ui-2.3-jar-with-dependencies.jar on windows 2003 server

Please provide any additional information below.

No

Original issue reported on code.google.com by hihisur...@gmail.com on 19 Dec 2009 at 4:18

GoogleCodeExporter commented 8 years ago
This can be set inside the Content-Type header as a param.  For instance:

Content-Type: multipart/mixed; boundary=--my-unique-boundary

Original comment by brandonj...@gmail.com on 21 Jul 2010 at 7:19

GoogleCodeExporter commented 8 years ago
Added Apache HttpClient sample code for implementing this.

Original comment by subwiz on 8 Aug 2012 at 12:27

Attachments:

GoogleCodeExporter commented 8 years ago
Dependency info here:

http://stackoverflow.com/questions/1378920/how-can-i-make-a-multipart-form-data-
post-request-using-java

Abstract HttpEntity:

http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/ent
ity/AbstractHttpEntity.html

Original comment by subwiz on 8 Aug 2012 at 12:39

GoogleCodeExporter commented 8 years ago
restclient-lib module has been updated to incorporate this. Will need to work 
on the UI module now.

Original comment by subwiz on 10 Aug 2012 at 5:28

GoogleCodeExporter commented 8 years ago
Completed :-)

Upcoming 3.1 release will have this functionality.

Original comment by subwiz on 14 Sep 2012 at 12:09