On Mon, 20 Apr 2009, e deleflie wrote:

> Hi Hugh,
> 

[> Hugh Sasse wrote at some point :-):] 
> > OK, the only thing I can find about this is that post takes a block so
> > things can be dealt with in chunks.  But the docs:
> > http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html#M001227
> > make no sense to me: they talk about reading stuff, which is in the
> > wrong direction.  Maybe examining the source would clarify.  Can't
> > find anythng with search engines (except that one says post is to
> > handle incoming post requests on the server), but looking at the
> > code of Mechanize might also be of some use.
> 
> I've actually already got this working with Net::Http. Did so by
> copying the S3Sync code here:
> 
> http://github.com/willcodeforfoo/s3sync/blob/745fef915a225933f4a1156c14a1ed237b43409f/HTTPStreaming.rb

I might have a look that that when I get a bit more time.
> 
> ... which is why if Net:HTTP domain resolution worked in windows, I'd
> be tickled pink.
> 
> (I'm thinking one kludge hack might be to run a download on the same
> url first, just before doing the net:http one... which, from tests,
> seems to allow net::http to resolve).

but downlaod fails for some platforms?  I thought that was the problem
with it.
> 
> Essentially,
> 
[Did this get truncated?]

        Hugh

Reply via email to