Use url_fopen error code when opening input file