Multipart-download server code