On Tue, 21 Jun 2005 00:24:52 +0200, Brent Kynaston <[EMAIL PROTECTED]>
wrote:
Ronald,
Thanks for the quick response.
Here is the HTTP header (captured by Ethereal) from the post where I've
inserted some Finnish data for one of the fields:
*-----------------------------------------------------
Frame 161 (856 bytes on wire, 856 bytes captured)
Ethernet II, Src: 00:50:56:c0:00:08, Dst: 00:0c:29:cc:ba:ff
Internet Protocol, Src Addr: 192.168.189.1 (192.168.189.1), Dst Addr:
192.168.189.201 (192.168.189.201)
Transmission Control Protocol, Src Port: 2631 (2631), Dst Port: http
(80), Seq: 1, Ack: 1, Len: 802
Hypertext Transfer Protocol
POST
/GLPNetPortal/portal/portlet/COPDocuments?urlType=Action&novl-inst=c373e902f9802206764b000c296f1d50&wsrp-mode=view&wsrp-windowstate=normal&action=updateDoc&DocID=c373e90485927c3d323c000c29ccbaff
HTTP/1.1\r\n
Request Method: POST
Request URI:
/GLPNetPortal/portal/portlet/COPDocuments?urlType=Action&novl-inst=c373e902f9802206764b000c296f1d50&wsrp-mode=view&wsrp-windowstate=normal&action=updateDoc&DocID=c373e90485927c3d323c000c29ccbaff
Request Version: HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*\r\n
Referer:
http://192.168.189.201/GLPNetPortal/portal/portlet/COPDocuments?novl-inst=c373e902f9802206764b000c296f1d50\r\n
Accept-Language: en-us\r\n
Content-Type: multipart/form-data;
boundary=---------------------------7d522e2ec0e8a\r\n
Accept-Encoding: gzip, deflate\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.1.4322)\r\n
Host: 192.168.189.201\r\n
Content-Length: 968\r\n
Connection: Keep-Alive\r\n
Cache-Control: no-cache\r\n
Cookie: JSESSIONID=aa88969a240158baa93362f89c55e4f3\r\n
\r\n
*-----------------------------------------------------
Thanks,
Brent
[EMAIL PROTECTED] 6/20/2005 5:31:19 PM >>>
On Mon, 20 Jun 2005 22:29:34 +0200, Brent Kynaston <[EMAIL PROTECTED]>
wrote:
I'm trying to post a multi-part form with file data and text input
files. The Portlet FileUpload code is able to successfully parse the
file data and text fields, except for when I change my keyboard type to
Finnish, Arabic, or any foreign language for that matter.
I've specified an http meta-equiv with UTF-8:
META http-equiv="Content-Type" content="text/html; charset=UTF-8
I've tried setting the PortletFileUpload class instance to various
encoding types, and have not been able to get it to work. Is this
broken in the current builds of commons-fileupload-1.1-dev.jar?
Post a dump of the headers going over the wire. (See ngrep, ethereal or
another network sniffer.)
A multipart/form-data post contains more headers in the body in the
request. Those are the interesting ones.
It's best seen with no file or a very small file upload.
Ronald.
--
Ronald Klop
Amsterdam, The Netherlands
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]