You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2004/08/24 21:43:54 UTC
DO NOT REPLY [Bug 30834] New: -
MultipartPost string part without defaults
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30834>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30834
MultipartPost string part without defaults
Summary: MultipartPost string part without defaults
Product: Commons
Version: 2.0 Final
Platform: All
OS/Version: OS/400
Status: NEW
Severity: Normal
Priority: Other
Component: HttpClient
AssignedTo: commons-httpclient-dev@jakarta.apache.org
ReportedBy: tgerdes@oldrepnatl.com
Is there a way to send a MultiPartPost without the default Content-Type,
Character set, and Transfer Encoding being sent in the string parts! What I
want to be able to do is send only the Content Disposition, name, and value.
The same as a Internet Explorer 6.0 browser does!
A trace of Internet Explorer 6.0 browser sending the MultipartPost is as
follows:
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="button"
bulk
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="cheqno"
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="amount"
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="cheqdate"
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="payable"
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="file_format"
0
-----------------------------7d42e81b2f0306
Content-Disposition: form-data
name="file"
filename="\\Mnmspmt470\POSPAY\ME000003.TXT"
Content-Type: text/plain
06/03/20040000018709000012618.83ORT FEES by WELSHONS
06/03/20040000050457000000700.00C
G Homes, Inc.
06/03/20040000050458000000132.05DAKOTA COUNTY TREASURER
06/03/20040000050459000034403.27Michael C. Husman
06/03/20040000050460000001842.15DAKOTA COUNTY TREASURER.
06/03/20040000050461000001062.00DWYER
ASSOCIATES, INC.
07/13/2004000000000600000050758.300031200769
-----------------------------7d42e81b2f0306--
A trace of Httpclient sending the same file using a MultipartPost is as follows:
------------------314159265358979323846
Content-Disposition: form-data; name="button"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding:
bulk
------------------314159265358979323846
Content-Disposition: form-data; name="cheqno"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding:
------------------314159265358979323846
Content-Disposition: form-data; name="amount"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding:
------------------314159265358979323846
Content-Disposition: form-data; name="cheqdate"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding:
------------------314159265358979323846
Content-Disposition: form-data; name="payable"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding:
------------------314159265358979323846
Content-Disposition: form-data; name="file_format"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding:
0
------------------314159265358979323846
Content-Disposition: form-data; name="file"; filename="/pospay/ME000003.TXT"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: ISO-8859-1
06/03/20040000018709000012618.83ORT FEES by WELSHONS
06/03/20040000050457000000700.00C & G Homes, Inc.
06/03/20040000050458000000132.05DAKOTA COUNTY TREASURER
06/03/20040000050459000034403.27Michael C. Husman
06/03/20040000050460000001842.15DAKOTA COUNTY TREASURER.
06/03/20040000050461000001062.00DWYER & ASSOCIATES, INC.
07/13/2004000000000600000050758.300031200769
I need to make my MultipartPost from Httpclient look like the one from Internet
Explorer 6! If I can get it to exclude the second two lines of the string
parts it would match there. Is there anyway to not send the default Content-
Type, Character set, and Transfer Encoding! I am trying to send the
MultipartPost to a server using Struts! Is there someway to make my Multipart
Post more friendly to Struts version 1.1.2!
"Content-Type: text/plain; charset=US-ASCII"
"Content-Transfer-Encoding:"
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org