update curl example to work with files :)