Implemented filename guessing, headerdata first and then url