Hi,
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";
objIISRoot.SetInfo();
....
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?
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
Started by
rajib
, Sep 25 2007 04:55
1 reply to this topic