English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Suppose I am using Microsoft IIS, when we request a aspx page, it is processed at server side & html response is generated for the client, but if we request for an exe or any other file, server does not processes anything, it simply sends the requested file to the client, & we can download that file as a popup is generated in IE which has option for Save to Disk.

My question is that, what HTTP method is used to directly return the requested file to the client without processing anything.

2007-09-29 16:14:59 · 4 answers · asked by Ankit G 2 in Computers & Internet Computer Networking

4 answers

Well, HTTP is doing exactly what it does, it will allow them to download exe files but it can't and doesn't "process" them.

Since .exe mean executable file and not a displayable file the only thing the WEB server can do is let the client download the file so that the client can then execute that file.

Hyper Text Transfer Protocall ( HTTP) can only send "text type" output! That is what it outputs, it can not RUN exe files.

2007-10-05 22:59:42 · answer #1 · answered by Tracy L 7 · 0 0

EXE file can be processed by IIS simply tagging this as CGI request. Some compiler (like Delphi Websnap) uses EXE file as CGI file. IIS will check if the EXE is a CGI type or an executable

2007-10-06 21:41:56 · answer #2 · answered by Billgate 2 · 0 0

I am not too sure of this answer, as I do not use microsoft webservers but apache and lighttpd, however, if i was to return a script to the browser, I would just change its permissions so that the server won't execute it. Try doing the same, it might work.

2007-10-01 15:35:14 · answer #3 · answered by TRON 4 · 0 0

try this i might help www.w3schools.com/default that explains all that for you

2007-09-29 16:22:02 · answer #4 · answered by Anonymous · 0 1

fedest.com, questions and answers