Re: MultipartPostMethod creating malformed headers?

2003-02-27 Thread Daniel Walsh
>What library are you using to parse 'multipart/form-data' > formatted requests? We actually have our own classes to parse a multipart/form-data formatted request. I guess they could be a bit outdated at this point, or possible never were completely spec compliant themselves. The specification h

MultipartPostMethod creating malformed headers?

2003-02-26 Thread Daniel Walsh
I'm getting a new exception thrown by the servlet I'm pointing to when I use today's (Feb. 26th) source for MultipartPostMethod. It complains about a malformed header line. When I point back to an older version of HttpClient, I don't get this exception. Any ideas? Daniel

Re: SocketException While Uploading Large File With MultipartPostMethod

2003-02-25 Thread Daniel Walsh
> There is no real limit on the file size. I've done it with a 300MB > file with no problem. The error could be on the server side. Any idea > what is happening there? What are you posting to? > > Mike Ok, 300MB is a pretty big file. So, I guess my 20MB shouldn't be creating a problem on thi

SocketException While Uploading Large File With MultipartPostMethod

2003-02-25 Thread Daniel Walsh
As I mentioned in a previous posting (Subject: MultipartPostMethod Holding File Stream Open?), I'm using the MultipartPostMethod to upload a file to a servlet. Here is the example code that I included in the other posting: > File file = new File(strUrl); > > HttpClient client = new HttpClient()

Re: MultipartPostMethod Holding File Stream Open?

2003-02-25 Thread Daniel Walsh
> This should be fixed now. The FileInputStream was not being closed > after posting. Great. I'll go ahead a re-download the API. Thanks for addressing it so quickly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

MultipartPostMethod Holding File Stream Open?

2003-02-25 Thread Daniel Walsh
I'm using a MultipartPostMethod to upload a file to a servlet: File file = new File(strUrl); HttpClient client = new HttpClient(); HostConfiguration hostConfig = new HostConfiguration(); MultipartPostMethod mpPost = new MultipartPostMethod(); hostConfig.setHost(someURL.getHost(), someUR

Re: File Upload

2003-02-13 Thread Daniel Walsh
> 2. Send the plain file as the request body. Look at the example > PostXML.java. On the server side you need only the request input stream. > That's it. Why would this method need to be limited to a plain text file, doesn't it just send the bytes? Also, I notice that the JavaDoc for the PostMeth

Re: File Upload

2003-02-12 Thread Daniel Walsh
Thanks for responding so quickly Martin. I was under the impression, though, that the implementation that you spoke of would require an HTML form, or some other type of UI - which my application does not use. Is that not true? Daniel > The usual mechanism for uploading files is to use the POST

File Upload

2003-02-12 Thread Daniel Walsh
I'm trying to use HttpClient's PutMethod to transfer a file from my client application to the associated Servlet. There isn't actually a UI for this application, in the end I want to automate the process. I'm not sure if there is a better way of doing a file upload such as this, but what I've

Re: MultipartPostMethod - Passing Parameters

2003-01-28 Thread Daniel Walsh
Thanks, everyone. The PostMethod class seems to work perfectly fine. I guess it was an issue of using MultipartPostMethod with Tomcat. I'm running the Tomcat 4.0 Internal Server inside of NetBeans, so the comment about MultipartPostMethod not working correctly with Tomcat, seems to have been

MultipartPostMethod - Passing Parameters

2003-01-27 Thread Daniel Walsh
In trying to get to know the HttpClient component a bit, I attempted to write a simple program using a Java Servlet and the HttpClient API - the end result being that the client make a post to the servlet and the servlet return a brief HTML response to the client. The next step would be to tran