Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Vista - IIS and CGI header processing

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
Processing - Hi all, I have this problem: On my IIS 6 server fully patched, I run a chat related site, with about one thousand of client connected per time. My problem is: random asp pages remain in status even when client has closed it, ignoring also..

IIS not processing asp correctly - I have a bit of a problem. I'm running w2k with IIS 5 and I have several asp pages that are not anything at all. I made a simple asp page the would output a test asp When I run this page from the browser I get no..

401.2 error processing - I have an intranet app that uses Windows Users that dial-in are not and IIS throws a 401.2 I thought the solution might be as follows: At the root (which is NOT under NT ..

IIS is not processing my asp.net code - My asp.net code doesn't get executed by IIS. My file is saved with .aspx When i do a view source, all the vb code is This shouldn't be visible if the server is the code, only the HTML should be How do i get..

Error after 5 minutes of processing - We have a web site that allows customers to inquire price and stock for parts. The customer enters the required parts in a ASP data grid bound to a data table. When they complete entering parts and submit to the the server, the server fetches the parts
Next:  iis & ssl certificate  
Author Message
Brian Ross

External


Since: Jan 15, 2007
Posts: 3



(Msg. 1) Posted: Mon Jan 15, 2007 3:00 pm
Post subject: Vista - IIS and CGI header processing
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

We have a CGI application that returns extra headers back to IIS. In some
cases, such as setting cookies, there are multiple header lines returned
with the same header name. For example:

Set-Cookie: ...
Set-Cookie: ...

Under Vista, something is causing IIS to only pass the last encountered
header for each unique header name. This results in the client application
from never seeing all the headers.

This issue would not happen with previous versions of IIS.

Is this a bug or is there something our application is not doing correctly?

Thanks

 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 2) Posted: Mon Jan 15, 2007 7:00 pm
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Make sure that your application is actually writing multiple
"Set-Cookie" response headers and not response entity.

If that is true, then this is most likely a bug with IIS7 on Vista.
Sounds like the CGI module is setting headers and not appending
duplicate headers.

You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
module's behavior as well.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


Brian Ross wrote:
> Hi,
>
> We have a CGI application that returns extra headers back to IIS. In some
> cases, such as setting cookies, there are multiple header lines returned
> with the same header name. For example:
>
> Set-Cookie: ...
> Set-Cookie: ...
>
> Under Vista, something is causing IIS to only pass the last encountered
> header for each unique header name. This results in the client application
> from never seeing all the headers.
>
> This issue would not happen with previous versions of IIS.
>
> Is this a bug or is there something our application is not doing correctly?
>
> Thanks

 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
Bernard Cheah [MVP]

External


Since: May 31, 2005
Posts: 346



(Msg. 3) Posted: Tue Jan 16, 2007 10:29 am
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try post this to www.iis.net.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"Brian Ross" <brian.ross.x RemoveThis @rogers.com> wrote in message
news:uz0Lg$NOHHA.4928@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> We have a CGI application that returns extra headers back to IIS. In some
> cases, such as setting cookies, there are multiple header lines returned
> with the same header name. For example:
>
> Set-Cookie: ...
> Set-Cookie: ...
>
> Under Vista, something is causing IIS to only pass the last encountered
> header for each unique header name. This results in the client application
> from never seeing all the headers.
>
> This issue would not happen with previous versions of IIS.
>
> Is this a bug or is there something our application is not doing
> correctly?
>
> Thanks
>
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
Brian Ross

External


Since: Jan 15, 2007
Posts: 3



(Msg. 4) Posted: Tue Jan 16, 2007 10:30 pm
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

I am pretty sure the multiple headers are returned correctly but I am not
sure what you mean by response entity?

Also, what do you mean by FREB tracing? I searched MSDN/Microsoft and found
very little information on this term.

Thanks
Brian

"David Wang" <w3.4you.DeleteThis@gmail.com> wrote in message
news:1168916457.983683.78780@11g2000cwr.googlegroups.com...
> Make sure that your application is actually writing multiple
> "Set-Cookie" response headers and not response entity.
>
> If that is true, then this is most likely a bug with IIS7 on Vista.
> Sounds like the CGI module is setting headers and not appending
> duplicate headers.
>
> You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
> module's behavior as well.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
> Brian Ross wrote:
>> Hi,
>>
>> We have a CGI application that returns extra headers back to IIS. In some
>> cases, such as setting cookies, there are multiple header lines returned
>> with the same header name. For example:
>>
>> Set-Cookie: ...
>> Set-Cookie: ...
>>
>> Under Vista, something is causing IIS to only pass the last encountered
>> header for each unique header name. This results in the client
>> application
>> from never seeing all the headers.
>>
>> This issue would not happen with previous versions of IIS.
>>
>> Is this a bug or is there something our application is not doing
>> correctly?
>>
>> Thanks
>
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
Bernard Cheah [MVP]

External


Since: May 31, 2005
Posts: 346



(Msg. 5) Posted: Wed Jan 17, 2007 2:43 pm
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Failed Request Event Buffering
http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=969&p=1

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"Brian Ross" <brian.ross.x.TakeThisOut@rogers.com> wrote in message
news:OUvXVfeOHHA.992@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> I am pretty sure the multiple headers are returned correctly but I am not
> sure what you mean by response entity?
>
> Also, what do you mean by FREB tracing? I searched MSDN/Microsoft and
> found very little information on this term.
>
> Thanks
> Brian
>
> "David Wang" <w3.4you.TakeThisOut@gmail.com> wrote in message
> news:1168916457.983683.78780@11g2000cwr.googlegroups.com...
>> Make sure that your application is actually writing multiple
>> "Set-Cookie" response headers and not response entity.
>>
>> If that is true, then this is most likely a bug with IIS7 on Vista.
>> Sounds like the CGI module is setting headers and not appending
>> duplicate headers.
>>
>> You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
>> module's behavior as well.
>>
>>
>> //David
>> http://w3-4u.blogspot.com
>> http://blogs.msdn.com/David.Wang
>> //
>>
>>
>> Brian Ross wrote:
>>> Hi,
>>>
>>> We have a CGI application that returns extra headers back to IIS. In
>>> some
>>> cases, such as setting cookies, there are multiple header lines returned
>>> with the same header name. For example:
>>>
>>> Set-Cookie: ...
>>> Set-Cookie: ...
>>>
>>> Under Vista, something is causing IIS to only pass the last encountered
>>> header for each unique header name. This results in the client
>>> application
>>> from never seeing all the headers.
>>>
>>> This issue would not happen with previous versions of IIS.
>>>
>>> Is this a bug or is there something our application is not doing
>>> correctly?
>>>
>>> Thanks
>>
>
>
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 6) Posted: Wed Jan 17, 2007 8:29 pm
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I want to verify that what your CGI sent as multiple Set-Cookie headers
is actually interpreted by the Browser as response headers (instead of
entity body). In other words, the data stream from the server to the
client has the multiple Set-Cookie headers showing up before the first
double \r\n in the HTTP response.

It doesn't matter if you're "pretty sure" about what you returned; if
what you sent is *after* the first double \r\n as read by the Browser,
then it is considered entity-body by the Browser and not processed as a
Set-Cookie directive. Which is the behavior that you are claiming is
different on Vista.

I am inclined to think this is a bug in the CGI module because I had
seen something similar in the IIS7 ISAPI Filter module. It's just
necessary to make it cleanly obvious and not "pretty sure".


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



Brian Ross wrote:
> Hi,
>
> I am pretty sure the multiple headers are returned correctly but I am not
> sure what you mean by response entity?
>
> Also, what do you mean by FREB tracing? I searched MSDN/Microsoft and found
> very little information on this term.
>
> Thanks
> Brian
>
> "David Wang" <w3.4you.RemoveThis@gmail.com> wrote in message
> news:1168916457.983683.78780@11g2000cwr.googlegroups.com...
> > Make sure that your application is actually writing multiple
> > "Set-Cookie" response headers and not response entity.
> >
> > If that is true, then this is most likely a bug with IIS7 on Vista.
> > Sounds like the CGI module is setting headers and not appending
> > duplicate headers.
> >
> > You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
> > module's behavior as well.
> >
> >
> > //David
> > http://w3-4u.blogspot.com
> > http://blogs.msdn.com/David.Wang
> > //
> >
> >
> > Brian Ross wrote:
> >> Hi,
> >>
> >> We have a CGI application that returns extra headers back to IIS. In some
> >> cases, such as setting cookies, there are multiple header lines returned
> >> with the same header name. For example:
> >>
> >> Set-Cookie: ...
> >> Set-Cookie: ...
> >>
> >> Under Vista, something is causing IIS to only pass the last encountered
> >> header for each unique header name. This results in the client
> >> application
> >> from never seeing all the headers.
> >>
> >> This issue would not happen with previous versions of IIS.
> >>
> >> Is this a bug or is there something our application is not doing
> >> correctly?
> >>
> >> Thanks
> >
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
Brian Ross

External


Since: Jan 15, 2007
Posts: 3



(Msg. 7) Posted: Thu Jan 18, 2007 4:45 pm
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

It must be sending the headers correctly because the last 'Set-Cookie'
header returned by the CGI is correctly being sent to the client browser.
The other Set-Cookie headers that are being dropped by IIS are set at the
exact same point by the CGI application. This isn't a case of the headers
simply being ignored because they are part of the HTTP response body.

It also looks like a bug to me but I wanted to make sure that there wasn't
some special processing that I wasn't aware of that might explain this
behaviour.

Thanks
Brian

"David Wang" <w3.4you DeleteThis @gmail.com> wrote in message
news:1169094588.537134.61280@a75g2000cwd.googlegroups.com...
>I want to verify that what your CGI sent as multiple Set-Cookie headers
> is actually interpreted by the Browser as response headers (instead of
> entity body). In other words, the data stream from the server to the
> client has the multiple Set-Cookie headers showing up before the first
> double \r\n in the HTTP response.
>
> It doesn't matter if you're "pretty sure" about what you returned; if
> what you sent is *after* the first double \r\n as read by the Browser,
> then it is considered entity-body by the Browser and not processed as a
> Set-Cookie directive. Which is the behavior that you are claiming is
> different on Vista.
>
> I am inclined to think this is a bug in the CGI module because I had
> seen something similar in the IIS7 ISAPI Filter module. It's just
> necessary to make it cleanly obvious and not "pretty sure".
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
>
> Brian Ross wrote:
>> Hi,
>>
>> I am pretty sure the multiple headers are returned correctly but I am not
>> sure what you mean by response entity?
>>
>> Also, what do you mean by FREB tracing? I searched MSDN/Microsoft and
>> found
>> very little information on this term.
>>
>> Thanks
>> Brian
>>
>> "David Wang" <w3.4you DeleteThis @gmail.com> wrote in message
>> news:1168916457.983683.78780@11g2000cwr.googlegroups.com...
>> > Make sure that your application is actually writing multiple
>> > "Set-Cookie" response headers and not response entity.
>> >
>> > If that is true, then this is most likely a bug with IIS7 on Vista.
>> > Sounds like the CGI module is setting headers and not appending
>> > duplicate headers.
>> >
>> > You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
>> > module's behavior as well.
>> >
>> >
>> > //David
>> > http://w3-4u.blogspot.com
>> > http://blogs.msdn.com/David.Wang
>> > //
>> >
>> >
>> > Brian Ross wrote:
>> >> Hi,
>> >>
>> >> We have a CGI application that returns extra headers back to IIS. In
>> >> some
>> >> cases, such as setting cookies, there are multiple header lines
>> >> returned
>> >> with the same header name. For example:
>> >>
>> >> Set-Cookie: ...
>> >> Set-Cookie: ...
>> >>
>> >> Under Vista, something is causing IIS to only pass the last
>> >> encountered
>> >> header for each unique header name. This results in the client
>> >> application
>> >> from never seeing all the headers.
>> >>
>> >> This issue would not happen with previous versions of IIS.
>> >>
>> >> Is this a bug or is there something our application is not doing
>> >> correctly?
>> >>
>> >> Thanks
>> >
>
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
wadeh

External


Since: Sep 03, 2003
Posts: 115



(Msg. 8) Posted: Thu Jan 18, 2007 4:45 pm
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

Pardon my jumping in here, but this a bug in IIS 7 and we are aware of it.

There is no fix currently available. If you would like to push for one, the
best course of action is to contact Product Support Services and request a
fix. I can't make any comments as to when something could be available.
Product Support would work with you on the details.

If it helps, you may give the Support Engineer my name so that they don't
need to do any special investigation.

Thank you,
-Wade A. Hilmo,
-Microsoft


"Brian Ross" <brian.ross.x.RemoveThis@rogers.com> wrote in message
news:edP$Do0OHHA.1248@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> It must be sending the headers correctly because the last 'Set-Cookie'
> header returned by the CGI is correctly being sent to the client browser.
> The other Set-Cookie headers that are being dropped by IIS are set at the
> exact same point by the CGI application. This isn't a case of the headers
> simply being ignored because they are part of the HTTP response body.
>
> It also looks like a bug to me but I wanted to make sure that there wasn't
> some special processing that I wasn't aware of that might explain this
> behaviour.
>
> Thanks
> Brian
>
> "David Wang" <w3.4you.RemoveThis@gmail.com> wrote in message
> news:1169094588.537134.61280@a75g2000cwd.googlegroups.com...
> >I want to verify that what your CGI sent as multiple Set-Cookie headers
> > is actually interpreted by the Browser as response headers (instead of
> > entity body). In other words, the data stream from the server to the
> > client has the multiple Set-Cookie headers showing up before the first
> > double \r\n in the HTTP response.
> >
> > It doesn't matter if you're "pretty sure" about what you returned; if
> > what you sent is *after* the first double \r\n as read by the Browser,
> > then it is considered entity-body by the Browser and not processed as a
> > Set-Cookie directive. Which is the behavior that you are claiming is
> > different on Vista.
> >
> > I am inclined to think this is a bug in the CGI module because I had
> > seen something similar in the IIS7 ISAPI Filter module. It's just
> > necessary to make it cleanly obvious and not "pretty sure".
> >
> >
> > //David
> > http://w3-4u.blogspot.com
> > http://blogs.msdn.com/David.Wang
> > //
> >
> >
> >
> > Brian Ross wrote:
> >> Hi,
> >>
> >> I am pretty sure the multiple headers are returned correctly but I am
not
> >> sure what you mean by response entity?
> >>
> >> Also, what do you mean by FREB tracing? I searched MSDN/Microsoft and
> >> found
> >> very little information on this term.
> >>
> >> Thanks
> >> Brian
> >>
> >> "David Wang" <w3.4you.RemoveThis@gmail.com> wrote in message
> >> news:1168916457.983683.78780@11g2000cwr.googlegroups.com...
> >> > Make sure that your application is actually writing multiple
> >> > "Set-Cookie" response headers and not response entity.
> >> >
> >> > If that is true, then this is most likely a bug with IIS7 on Vista.
> >> > Sounds like the CGI module is setting headers and not appending
> >> > duplicate headers.
> >> >
> >> > You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
> >> > module's behavior as well.
> >> >
> >> >
> >> > //David
> >> > http://w3-4u.blogspot.com
> >> > http://blogs.msdn.com/David.Wang
> >> > //
> >> >
> >> >
> >> > Brian Ross wrote:
> >> >> Hi,
> >> >>
> >> >> We have a CGI application that returns extra headers back to IIS. In
> >> >> some
> >> >> cases, such as setting cookies, there are multiple header lines
> >> >> returned
> >> >> with the same header name. For example:
> >> >>
> >> >> Set-Cookie: ...
> >> >> Set-Cookie: ...
> >> >>
> >> >> Under Vista, something is causing IIS to only pass the last
> >> >> encountered
> >> >> header for each unique header name. This results in the client
> >> >> application
> >> >> from never seeing all the headers.
> >> >>
> >> >> This issue would not happen with previous versions of IIS.
> >> >>
> >> >> Is this a bug or is there something our application is not doing
> >> >> correctly?
> >> >>
> >> >> Thanks
> >> >
> >
>
>
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
David Wang

External


Since: Dec 22, 2006
Posts: 560



(Msg. 9) Posted: Fri Jan 19, 2007 3:39 am
Post subject: Re: Vista - IIS and CGI header processing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yup, then that sounds like a bug in the CGI Module to me. Cookies have
no special meaning to IIS. It's just another header to pass back and
forth.

Cookies can have meaning to application layers on TOP of IIS, such as
ASP, PHP, ASP.Net, etc which can use its special client-side
interpretation to manage state and "sessions".


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//


Brian Ross wrote:
> Hi,
>
> It must be sending the headers correctly because the last 'Set-Cookie'
> header returned by the CGI is correctly being sent to the client browser.
> The other Set-Cookie headers that are being dropped by IIS are set at the
> exact same point by the CGI application. This isn't a case of the headers
> simply being ignored because they are part of the HTTP response body.
>
> It also looks like a bug to me but I wanted to make sure that there wasn't
> some special processing that I wasn't aware of that might explain this
> behaviour.
>
> Thanks
> Brian
>
> "David Wang" <w3.4you RemoveThis @gmail.com> wrote in message
> news:1169094588.537134.61280@a75g2000cwd.googlegroups.com...
> >I want to verify that what your CGI sent as multiple Set-Cookie headers
> > is actually interpreted by the Browser as response headers (instead of
> > entity body). In other words, the data stream from the server to the
> > client has the multiple Set-Cookie headers showing up before the first
> > double \r\n in the HTTP response.
> >
> > It doesn't matter if you're "pretty sure" about what you returned; if
> > what you sent is *after* the first double \r\n as read by the Browser,
> > then it is considered entity-body by the Browser and not processed as a
> > Set-Cookie directive. Which is the behavior that you are claiming is
> > different on Vista.
> >
> > I am inclined to think this is a bug in the CGI module because I had
> > seen something similar in the IIS7 ISAPI Filter module. It's just
> > necessary to make it cleanly obvious and not "pretty sure".
> >
> >
> > //David
> > http://w3-4u.blogspot.com
> > http://blogs.msdn.com/David.Wang
> > //
> >
> >
> >
> > Brian Ross wrote:
> >> Hi,
> >>
> >> I am pretty sure the multiple headers are returned correctly but I am not
> >> sure what you mean by response entity?
> >>
> >> Also, what do you mean by FREB tracing? I searched MSDN/Microsoft and
> >> found
> >> very little information on this term.
> >>
> >> Thanks
> >> Brian
> >>
> >> "David Wang" <w3.4you RemoveThis @gmail.com> wrote in message
> >> news:1168916457.983683.78780@11g2000cwr.googlegroups.com...
> >> > Make sure that your application is actually writing multiple
> >> > "Set-Cookie" response headers and not response entity.
> >> >
> >> > If that is true, then this is most likely a bug with IIS7 on Vista.
> >> > Sounds like the CGI module is setting headers and not appending
> >> > duplicate headers.
> >> >
> >> > You can probably turn on FREB tracing from IIS7 GUI to debug the CGI
> >> > module's behavior as well.
> >> >
> >> >
> >> > //David
> >> > http://w3-4u.blogspot.com
> >> > http://blogs.msdn.com/David.Wang
> >> > //
> >> >
> >> >
> >> > Brian Ross wrote:
> >> >> Hi,
> >> >>
> >> >> We have a CGI application that returns extra headers back to IIS. In
> >> >> some
> >> >> cases, such as setting cookies, there are multiple header lines
> >> >> returned
> >> >> with the same header name. For example:
> >> >>
> >> >> Set-Cookie: ...
> >> >> Set-Cookie: ...
> >> >>
> >> >> Under Vista, something is causing IIS to only pass the last
> >> >> encountered
> >> >> header for each unique header name. This results in the client
> >> >> application
> >> >> from never seeing all the headers.
> >> >>
> >> >> This issue would not happen with previous versions of IIS.
> >> >>
> >> >> Is this a bug or is there something our application is not doing
> >> >> correctly?
> >> >>
> >> >> Thanks
> >> >
> >
 >> Stay informed about: Vista - IIS and CGI header processing 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]