Re: Transporting large files with HttpClient

2003-07-03 Thread David Kavanagh
You better have a LOT of time on your hands! (and hope the http connection stays up long enough) heh heh... Robert Csiki wrote: I've found the request body's content length (set via PostMethod.setRequestContentLength) is stored by an *int* What happens if I want to upload a large file, lets say

Re: Is HttpClient supported by non-Sun VMs?

2003-07-03 Thread David Kavanagh
Robert, They way I solved this for one project was to do a custom uploader to my own servlet. You can get much better performance streaming your own binary data to a servlet you control. You can even deflate the data first. David Robert Csiki wrote: Oleg, That's what I was affraid of. The onl

Re: redirects not allowed for PostMethod

2003-03-17 Thread David Kavanagh
Matt, I went through the same thing a week or two ago. Thing is, what method should the PostMethod use for the redirect? You need to capture the result and issue a GET using the Location response header attribute. David Matthew S. Ring wrote: Hi, I just started using the latest version of the

Re: AW: post redirect

2003-03-07 Thread David Kavanagh
directly interacting with the end user. I am personally convinced that POST redirect should be handled by the application that consumes Httpclient's services. All it basically takes is a retry loop Does anyone see that differently? Cheers Oleg -Original Message- From: David Kavanagh [m

Re: post redirect

2003-03-07 Thread David Kavanagh
with the end user. I am personally convinced that POST redirect should be handled by the application that consumes Httpclient's services. All it basically takes is a retry loop Does anyone see that differently? Cheers Oleg -Original Message- From: David Kavanagh [mailto:[EMAIL PROTE

post redirect

2003-03-07 Thread David Kavanagh
I've been working with httpclient for a couple of days to build a Cocoon transformer that helps me build pipelines to navigate web sites and extract data. I've read the parts of RFC2616 that deal with redirects and state they are automatic on the client only for GET and HEAD methods. I know the