HttpClient: Code for a multipart POST method

2002-01-18 Thread Matthew Albright
I coded this up to satisfy a need I had for an HttpClient that did a form POST with Content-type: multipart/form-data . It works on the one site I needed it to work on, and it fits in the org.apache.commons.httpclient hierarchy, so I thought I'd donate it. Using it is the same as any other

Re: HttpClient: Code for a multipart POST method

2002-01-18 Thread Matthew Albright
And, here is the code... (DOH!) matt __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ MultipartPostMethod.tar.gz Description: MultipartPostMethod.tar.gz -- To unsubscribe, e-mail: mailto:[EMAIL

Re: HttpClient: Code for a multipart POST method

2002-01-18 Thread Matthew Albright
a href=mailto:[EMAIL PROTECTED];Matthew Albright/a + */ + public class MultipartPostMethod extends GetMethod + { + private List parameters = new ArrayList(); + + /** + * No-arg constructor. + */ + public MultipartPostMethod() + { + super

HttpClient: Basic Authentication acting more like a browser

2002-01-17 Thread Matthew Albright
I've run into a interesting little shortcoming with HttpClient, and would like to know if someone is working on a solution. When a browser goes to a site that requires Basic Authentication, it will make a request (GET /), get a 401 response with a realm attached, and prompt the user for a