Fix GET parameter and set output file name.