replace http header info retrieval
the latest changes removed zeroing of filename which was then missing its null terminator