redirect prbl after moving Unix-Windows webhost (CGI/perl)
Who can help me?
I have a cgi/perl script that I moved from Unix (Apache) webhost to Windows (IIS6.0) webhost.
My script does a redirect (print Location: $location) of a choosen MP3 file. Website visitors must be able to do a right mouse click on the link to the CGI/perl script and choose the "Save target as" to save the MP3 file instead of listening to it.
And now comes the problem: with the Windows-IIS webhost the visitors get the script-name as a filename when choosing "Save target as" instead of the MP3 filename!!! (In Apache the same action resulted in the MP3 filename when choosing Save target as.)
When I analyse the headers the webserver produces there is a big difference. Apache produces a "302 Found" with a location, and this works ok, but IIS produces a "200 OK" and this is apperently interpreted different by the browser!
Can anyone help???? Thanks very much!!!
Header produced by Win/IIS server:
HTTP/1.1 200 OK
Date: Fri, 05 Aug 2005 08:45:43 GMT
Last-Modified: Fri, 05 Aug 2005 00:00:50 GMTA
Header produced by Unix/Apache server:
HTTP/1.1 302 Found
Date: Fri, 05 Aug 2005 08:43:02 GMT
Server: Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7e
Content-Type: text/html; charset=iso-8859-1
The script is the same, it's called gkvl_o_a.html and includes the line print "Location: $SRC\n\n"