Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

How to add multiple custom headers

1 reply to this topic


  • Full Members
  • 16 posts

Posted 25 September 2007 - 04:55


I'm trying to modify the properties(HTTP Headers) of a virtual directory. I need to to do two tasks:

1. Enable content expiration
2. Add custom http headers (key: value)

Here is my approach:

set objIISRoot = CoGetObject("IIS://Localhost/W3svc/1/Root/testVD", "");
if IsObject( objIISRoot ) then

objIISRoot.HttpExpires = "D, 0";
objIISRoot.HttpCustomHeaders ="key: value";


But the problem is: I can not assign multiple customHeaders.

How can i assign MULTIPLE CUSTOM HEADERS? it does not accept any array type or list type? what should i do?


  • Full Members
  • 16 posts

Posted 26 September 2007 - 09:31

Guys I think I've got the solution....