Dear Gentlemen (and Ladies of course),
I am facing an interesting problem (which may be not be a problem). I
am running win2000 server IIS5 (with newest SP). This is our
development server and I am making an ACCESS-driven ASP applications.
For easy development purposes I have enabled the "Allow Directory
Browsing" in IIS in the "home" virtual folder, just to see whether
files are written by the ASP script in that folder. What I noticed is
when I try to simply download the files (ASP, TXT, HTM) by using the
Right-click "Save Target As…" using Internet Explorer (v 5.0)
the ISS tries to execute the files and always sends back the response
(file) in html type of format.
Thus, the files that are saved locally on my PC are always in HTML
format, also for the TXT files, which is quite strange. I have checked
the MIME types headers in IIS and everything seems normal. The TXT and
HTM extensions are not mapped to the ASP DLL engine.
Any ideas what can trigger this IIS behavior. This can be a good
mechanism for protecting the files to be viewed (downloaded) in
Browser (even TXT files!!!).
Greetings,
John. 7 1678
In news:f9**************************@posting.google.c om,
John Laco <jo*******@yahoo.co.uk> typed:
: Dear Gentlemen (and Ladies of course),
:
: I am facing an interesting problem (which may be not be a problem). I
: am running win2000 server IIS5 (with newest SP). This is our
: development server and I am making an ACCESS-driven ASP applications.
: For easy development purposes I have enabled the "Allow Directory
: Browsing" in IIS in the "home" virtual folder, just to see whether
: files are written by the ASP script in that folder. What I noticed is
: when I try to simply download the files (ASP, TXT, HTM) by using the
: Right-click "Save Target As…" using Internet Explorer (v 5.0)
: the ISS tries to execute the files and always sends back the response
: (file) in html type of format.
:
The .asp extension is always processing by IIS when the request comes from
HTTP (webpage). A way to avoid this is to use FTP.
: Thus, the files that are saved locally on my PC are always in HTML
: format, also for the TXT files, which is quite strange. I have checked
: the MIME types headers in IIS and everything seems normal. The TXT and
: HTM extensions are not mapped to the ASP DLL engine.
Can explain why .txt or .htm file extensions exhibit this behavior other
than being mapped to the ASP engine.
:
: Any ideas what can trigger this IIS behavior. This can be a good
: mechanism for protecting the files to be viewed (downloaded) in
: Browser (even TXT files!!!).
What do txt files look like after they go through the ASP engine. It
shouldn't make a difference unless those TXT files have a <% %> in them
somewhere.
Don
"John Laco" <jo*******@yahoo.co.uk> wrote in message
news:f9**************************@posting.google.c om... Dear Gentlemen (and Ladies of course),
I am facing an interesting problem (which may be not be a problem). I am running win2000 server IIS5 (with newest SP). This is our development server and I am making an ACCESS-driven ASP applications. For easy development purposes I have enabled the "Allow Directory Browsing" in IIS in the "home" virtual folder, just to see whether files are written by the ASP script in that folder. What I noticed is when I try to simply download the files (ASP, TXT, HTM) by using the Right-click "Save Target As…" using Internet Explorer (v 5.0) the ISS tries to execute the files and always sends back the response (file) in html type of format.
Thus, the files that are saved locally on my PC are always in HTML format, also for the TXT files, which is quite strange. I have checked the MIME types headers in IIS and everything seems normal. The TXT and HTM extensions are not mapped to the ASP DLL engine.
Any ideas what can trigger this IIS behavior. This can be a good mechanism for protecting the files to be viewed (downloaded) in Browser (even TXT files!!!).
Are you saying that plain text files get html embedded in them when saved
locally?
--
Tom Kaminski IIS MVP http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://mvp.support.microsoft.com/ http://www.microsoft.com/windowsserv...y/centers/iis/
This is the be expected. When you do a save target as&8230, it's still an
http request to the server. If you setup your server so that you can
download .asp files, then you will not be able to execute .asp files in that
directory anymore. I suggest just mapping a drive to the server.
Ray at work
"John Laco" <jo*******@yahoo.co.uk> wrote in message
news:f9**************************@posting.google.c om... Dear Gentlemen (and Ladies of course),
I am facing an interesting problem (which may be not be a problem). I am running win2000 server IIS5 (with newest SP). This is our development server and I am making an ACCESS-driven ASP applications. For easy development purposes I have enabled the "Allow Directory Browsing" in IIS in the "home" virtual folder, just to see whether files are written by the ASP script in that folder. What I noticed is when I try to simply download the files (ASP, TXT, HTM) by using the Right-click "Save Target As…" using Internet Explorer (v 5.0) the ISS tries to execute the files and always sends back the response (file) in html type of format.
Thus, the files that are saved locally on my PC are always in HTML format, also for the TXT files, which is quite strange. I have checked the MIME types headers in IIS and everything seems normal. The TXT and HTM extensions are not mapped to the ASP DLL engine.
Any ideas what can trigger this IIS behavior. This can be a good mechanism for protecting the files to be viewed (downloaded) in Browser (even TXT files!!!).
Greetings, John.
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message news:<bl**********@kcweb01.netnews.att.com>... "John Laco" <jo*******@yahoo.co.uk> wrote in message news:f9**************************@posting.google.c om...
Are you saying that plain text files get html embedded in them when saved locally?
Dear Don, Dear Tom,
Thanks for your answers. Yes indeed, the TXT files are HTML embedded
with <html> tags at the beginning. My first guess was that the ASP
engine serves the TXT files as well. I will check the registry
entries.
Thanks again,
John.
"John Laco" <jo*******@yahoo.co.uk> wrote in message
news:f9**************************@posting.google.c om... "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:<bl**********@kcweb01.netnews.att.com>... "John Laco" <jo*******@yahoo.co.uk> wrote in message news:f9**************************@posting.google.c om...
Are you saying that plain text files get html embedded in them when
saved locally?
Dear Don, Dear Tom,
Thanks for your answers. Yes indeed, the TXT files are HTML embedded with <html> tags at the beginning. My first guess was that the ASP engine serves the TXT files as well. I will check the registry entries.
Bizarre - that shouldn't happen.
--
Tom Kaminski IIS MVP http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://mvp.support.microsoft.com/ http://www.microsoft.com/windowsserv...y/centers/iis/
"John Laco" <jo*******@yahoo.co.uk> wrote in message
news:f9**************************@posting.google.c om... "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:<bl**********@kcweb01.netnews.att.com>... "John Laco" <jo*******@yahoo.co.uk> wrote in message news:f9**************************@posting.google.c om...
Are you saying that plain text files get html embedded in them when
saved locally?
My first guess was that the ASP engine serves the TXT files as well. I
will check the registry entries.
FWIW, the ASP engine wouldn't cause that. It only parses the ASP code, it
does not insert any HTML.
--
Tom Kaminski IIS MVP http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://mvp.support.microsoft.com/ http://www.microsoft.com/windowsserv...y/centers/iis/
Hi,
Did you tried from another client pc or from your server in localhost ?
Ben [ ZoneB.org _ Netah ]
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bruce D |
last post by:
I'm trying to understand MySQL better. I can't seem to figure out why the
second query takes 2 minutes and the first query takes 12 seconds. It
should be noted that the table, KBM, has 250...
|
by: Ina Schmitz |
last post by:
Hello all,
I don't succeed in displaying the explain plan. I use IBM DB2 Universal
Database 8.2.
I tried to do the example given in the online help for "Visual Explain".
The tables...
|
by: Jeff Boes |
last post by:
I'm hoping there's someone here with experience in building the Visual
Explain tool from Red Hat. I downloaded it and the J2 SDK, but when I
attempt to follow the build instructions, I get messages...
|
by: Jon Lapham |
last post by:
I have been using the EXPLAIN ANALYZE command to debug some performance
bottlenecks in my database. In doing so, I have found an oddity (to me
anyway). The "19ms" total runtime reported below...
|
by: Dan Sugalski |
last post by:
Is there any way to convince explain to go do its thing when given a
query with placeholders in it?
I'm trying to do some performance checking of some of the queries
built into a system I'm...
|
by: marklawford |
last post by:
Not having earned my DBA badge from the scouts just yet I'm a little
lost with an error I'm getting.
We've just upgraded our development database from 7.2 to 8.2 as the
first step in upgrading...
|
by: heming_g |
last post by:
two tables with the same table structure : tb_xxx and tb_xxx_tmp
in table tb_xxx , column "listno" is the primary key of itself and
foreign key of dozen of tables .
here is my sql .. "...
|
by: dataguy |
last post by:
I have my developers explaining the stored procedures that they write
using visual studio. These stored procedures are for DB2 os390. In
one case, one of the developers has defined a global...
|
by: kabotnet |
last post by:
Hi,
I'm new in db2, I'm trying to execute EXPLAIN command on some queries
but i have error like:
And message similar to: Token EXPLAIN is not valid, valid tokens ( END
GET SET CALL DROP FREE...
|
by: w.l.fischer |
last post by:
Hi,
the following sequence:
set current explain mode yes;
set current explain snapshot yes;
update ...;
set current explain mode no;
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |