Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#218 HTTP readers in result file

Undecided
open
nobody
None
1
2014-07-18
2013-05-26
Daniel Nova
No

Hello, I need to add html headers as is to output file.

I spent 4 hours, but still cant find right place in source, to do that.
I think, I have weak C++ skills to do that.

(i dont care about torrents or so. just direct http downloads)

can you help me?
big thanks.

Discussion

  • tujikawa
    tujikawa
    2013-06-20

    HTTP response headers are retrieved using HttpHeaderProcessor::getHeaderString.
    The acutual code that processes response header is in HttpConnection::receiveResponse.

    Inserting HTTP response headers at the beginning of download file is a bit hard for aria2, since it depends on the file offset to write incoming data to local file.