removing filetype in curl