[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Access received headers from socket.http in storing sink
- From: Phoenix Sol <phoenix@...>
- Date: Sun, 10 Jan 2010 14:59:30 -0600
If you don't mind the extra connection, you can simply send
Main reason is, I need the "content-length" from the reply to calculate progress.
Other reasons could be the "filename" header, which you will need, when the filename is not detectable from the url.
a HEAD request before the GET request. That will give you
the headers independently.
If it's a "large file", after a HEAD to grab the content-length you could then maybe use *Range Retrieval Requests* to break the transfer up among concurrent threads.
This is a 'neat trick', that I've yet to try, myself ;)