IE 7 cannot run cgi urls?

I tired running a camera link with cgi extension on IE 7 and it prompts me to save the file etc and cannot see any video cam. However using firefox does not have such problems. How do i resolve this problem in IE 7?

Thanks

Regards

Alucard

[263 byte] By [AlucardHellSing] at [2008-1-10]
# 1

You need to look into MIME types for your CGI file. Browsers interperet incorrectly configured MIME types differently.

If you're using the CGI module, you can use the line print $cgi->header('text/html'); instead, where $cgi is your reference to the CGI instance.


Sourced from: http://developer.mozilla.org/en/docs/Properly_Configuring_Server_MIME_Types

Cheers,

Andy

AndyE at 2007-10-3 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 2

Hi Andy,

Thanks for the reply. Unfortunatley, I am not configuring any CGI module nor create any. The cgi derive from a public camera that I found on the internet : http://129.78.249.81/axis-cgi/mjpg/video.cgi

If you click on the link in firefox browser , you will be able to see the mjpeg but in IE 7 it will prompt you to save a file which things are not desired. So is there any means for me to configure IE 7 the way firefox works?

thanks.

Regards

Alucard

AlucardHellSing at 2007-10-3 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 3

Well, I have one more suggestion. Assuming your server is running apache's web server, create a new text file called ".htaccess" with the following statement in it:

Code Snippet
AddType application/x-httpd-cgi .cgi .pl
AddHandler server-parsed .cgi .pl

Then upload it to the same directory as your cgi file (http://129.78.249.81/axis-cgi/mjpg/)
If that doesn't work, then I'm stumped.

Andy

AndyE at 2007-10-3 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 4
hmm...as i have mentioned above, the link provided derive from the public camera found on the internet and i have no access to its web server bin directory etc. Have you tried that link on IE and firefox? any difference?

thanks.

Regards
Alucard

AlucardHellSing at 2007-10-3 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 5

Yes, I tried the link in IE7 and it provided a download prompt. In this case, the only thing you can do is contact the administrator of the website and inform them of the problem. AFAIK It's not possible to choose the action on a file you navigate to through IE.

Sorry about that!


Andy

AndyE at 2007-10-3 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...