Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 47750 invoked from network); 4 Jul 2007 21:26:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 21:26:19 -0000 Received: (qmail 92873 invoked by uid 500); 4 Jul 2007 21:26:21 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 92570 invoked by uid 500); 4 Jul 2007 21:26:21 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 92559 invoked by uid 99); 4 Jul 2007 21:26:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 14:26:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of raymond@thinkparity.com designates 64.233.162.226 as permitted sender) Received: from [64.233.162.226] (HELO nz-out-0506.google.com) (64.233.162.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 14:26:17 -0700 Received: by nz-out-0506.google.com with SMTP id l8so1413348nzf for ; Wed, 04 Jul 2007 14:25:56 -0700 (PDT) Received: by 10.114.80.4 with SMTP id d4mr7561520wab.1183584355336; Wed, 04 Jul 2007 14:25:55 -0700 (PDT) Received: by 10.114.151.6 with HTTP; Wed, 4 Jul 2007 14:25:55 -0700 (PDT) Message-ID: Date: Wed, 4 Jul 2007 14:25:55 -0700 From: "Raymond Kroeker" To: "HttpClient User Discussion" Subject: Re: Multipart post error In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_125596_30926545.1183584355284" References: <1183551065.4098.56.camel@okhost> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_125596_30926545.1183584355284 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi James; Your best bet is to use a browser tool like TamperData for FireFox. Then you can automatically filter out other network noise and concentrate on the info that you want to look at. http://tamperdata.mozdev.org/index.html Not sure of any apps that do posts. Raymond On 7/4/07, James Norman wrote: > > I was afraid that was the answer I would get. I haven't done any > packet analysis for a while, what tool would you recommend for > Windows? > > Also, are there any applications such as wget that would support > multipart posts? > > -james > > On 7/4/07, Oleg Kalnichevski wrote: > > On Tue, 2007-07-03 at 22:32 -0600, James Norman wrote: > > > Hey All, > > > I'm not sure if anyone will be able to help with this but I figured > > > I'd try. I'm trying to post multipart/form-data through httpclient > > > and I'm receiving the following exception on the server: > > > > > > java.io.IOException: Malformed line after content type: > > > Content-Transfer-Encoding: 8bit > > > > > > I get this in the stacktrace that is provided from the response on the > > > server. I don't have access to code that runs on the server and it > > > just happened to be running java and printed the stack trace. It also > > > appears to be running some proprietary multipart server code, this was > > > in the stack: > > > at com.mstr.sound.MultipartRequest.readNextPart(MultipartRequest.java > :231) > > > > > > I have been successful uploading files with HttpClient and Tomcat > > > locally, but not on this remote server. > > > > > > I found this thread from someone who had the same exception: > > > > http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200512.mbox/%3C43A1F4C6.5050401@carosys.com%3E > > > Which had a recommended solution to > > > Partbase.setTransferEncoding( null ); > > > However this did not fix the issue and the server started returning > NPEs. > > > > > > My question is this, the file upload works fine through Firefox and IE > > > but does not work through HttpClient, does anyone have any suggestions > > > I can try. I'm also open to any workaround, even shelling to another > > > program to get this working. > > > > > > Thanks for any help you can provide. > > > > > > > James, > > > > Here's what you may want to try: > > > > (1) capture packets generated by IE or Firefox using a traffic analyzer > > or a proxy > > (2) capture packets generated by HttpClient > > (3) compare the composition of the multipart requests > > (4) try to eliminate differences in the generated requests by tweaking > > HttpClient's configuration / subclassing MultipartRequestEntity. > > > > Hope this helps > > > > Oleg > > > > > -james > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: > httpclient-user-help@jakarta.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org > > -- -------------------------------------------------------------------------------- Raymond Kroeker thinkParity Solutions Inc. ------=_Part_125596_30926545.1183584355284--