[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Cauchon updated HTTPCLIENT-785:
-----------------------------------------

    Attachment: HttpClient-POST.txt

> Multipart POST truncated and causing clinet application to hang ?!
> ------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-785
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-785
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.1 Final
>         Environment: WinXP SP3, Eclipse 3.4, JDK 1.6.0_07, Tomcat 5.5.25 
>            Reporter: Guillaume Cauchon
>            Priority: Blocker
>         Attachments: Browser-POST.txt, HttpClient-POST.txt
>
>
> I'm using the HttpClient 3.1 to upload my Axis2 archives from my client 
> application to the Axis2 webapp (using the default same URL as the one used 
> by the JSP pages) and it keeps failing in a way I can explain... If I use the 
> webapp's upload jsp page the POST request works correctly and my archive gets 
> transferred without issues! However using HttpClient in my client application 
> even if I get a HTTP/1.0 200, the file doesn't gets transferred at all as it 
> seams the POST request is truncated (from looking at the post boundaries that 
> are missing. The funny thiongs it's is semas to be size related as it's is 
> working for realy small files from my client app...
> I'm using the simple code I found for http multipart post over the doc and in 
> other examples on the web :
> File f = new File(arg2);
> PostMethod filePost = new PostMethod(the_url.toExternalForm());
> Part[] parts = {
>           new FilePart(f.getName(), f)
> };
> filePost.setRequestEntity(
>           new MultipartRequestEntity(parts, filePost.getParams())
> );
> HttpClient client = new org.apache.commons.httpclient.HttpClient();
> HttpClientParams params = new HttpClientParams();
> client.getHttpConnectionManager().getParams().setConnectionTimeout(10000);
> client.setParams(params);
> status = client.executeMethod(filePost);
> I attached a tcpmon snapshot of the 2 different post requests, the one that 
> is working (from the jsp page) and the one that isn't (from my client app. 
> using HttpClient)!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to