My url looks like below my $url = "http://server_address:port/ws/1/console/webstart?full=true"; #Above url fetches the exe file as expected but I am not able to run it, getting "missing filename header error".