I have a question. Suppose that I have 2 files on remote site.
http://example.com/path/to/file1.txt
http://example.com/path/to/file2.txt
Is it possible to be merged before letting the user download it?
file1.txt
This is the content in file1.txt
file2.txt
But this is the content in file2.txt
merged_file.txt (The file that the user will get)
This is the content in file1.txt
But this is the content in file2.txt
Follow up questions
- If possible: can it be merged if the remote files have
Content-Disposition: attachment
as a header? - If impossible: can it be zipped together and let the user download a single file instead of multiple text files?