Using tmpfile for stdin from url