Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > inetserver iis > april 2009 >

inetserver iis : adding custom http header - enlarging max character length


mark
9/22/2003 2:03:59 AM
Hi,

I am trying to insert a compact privacy policy text
string into a custom HTTP header in IIS6.0 on Server2003,
but the text field is not accepting the full text
string. I am not aware of a property available to
increase this field length - is there a max length now?

Any assistance appreciated.

Mark

David Wang [Msft]
9/23/2003 9:24:28 PM
The IIS6 UI is imposing a limit on the size of a custom response header.
IIS5 UI didn't have such a limit.

You can use ADSUTIL.VBS to manually add a custom header larger than what the
UI allows.

CSCRIPT %SYSTEMDRIVE%\Inetpub\Adminscripts\ADSUTIL.VBS SET
W3SVC/1/ROOT/HttpCustomHeaders "MyHeader: <some long value>" "MyHeader2:
Another header value"

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Hi,

I am trying to insert a compact privacy policy text
string into a custom HTTP header in IIS6.0 on Server2003,
but the text field is not accepting the full text
string. I am not aware of a property available to
increase this field length - is there a max length now?

Any assistance appreciated.

Mark

P.S. I didn't have this problem with IIS on Server2000

mark
9/24/2003 6:27:25 AM
Thanks for your help with this David - one further
question.

When running the adsutil.vbs, does the MyHeader name have
to exist already and if the custom header contains
quotation marks (for example:
policyref="www.domain....", CP="NOI ....INT") how should
these be input into the script paramater? Also, will the
UI be able to refer to this custom header once the script
has been run?

Mark.

[quoted text, click to view]
Nisha
4/23/2009 8:17:29 PM
Did you find an answer to this? I am into the same problem :(

From http://www.developmentnow.com/g/59_2003_9_0_0_268171/adding-custom-http-header--enlarging-max-character-length.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button