Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting HTTP Header

Status
Not open for further replies.

drkestrel

MIS
Sep 25, 2000
439
0
0
GB
Trying to get IIS5.0 on Windows 2000 Professsional Workstation and Windows
2000 Advanced Server to set custom HTTP Header "Cache-Control: no-cache" for
a virtual directory. My "Content Expiration" was not ticked because I may
need to view Office documents (see
)

However, what I noticed is that regardless of whether I add custom HTTP
Header and regardless of whether content-expiration is
1) ticked and set to "Expire Immediately" or
2) not ticked

NO HTTP headers whatsover (i.e. not even the Content-Length, Content-Type,
Date) are returned to the server (I check this by doing a telnet to the Web
server and doing a GET operation on the file concerned).

Strangely, if I try to do something invalid (e.g. trying to do GET
/DirWithNoBrowsePermission) then I get back an HTTP Header like the
following, together with a standard Microsoft Error page.
Code:
HTTP/1.1 403 Access Forbidden
Server: Microsoft-IIS/5.0
Date: Mon, 21 Oct 2002 14:31:13 GMT
Content-Length: 4214
Content-Type: text/html
How could I get IIS5.0 to return HTTP headers?? I can't find any settings
that would do this!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top