Microsoft KB Archive/221154

= CGI Application Unable to Parse STDIN During Redirection =

Article ID: 221154

Article Last Modified on 6/22/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q221154



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
When a CGI application does a redirection and the REQUEST_METHOD is a POST, information may not be available on STDIN. This can occur when a CGI application is processing a POST from a client and the CGI application is located on a computer running Microsoft Internet Information Server (IIS) 4.0. If the CGI application does a redirection using the full URL path, Microsoft IIS returns an external redirection to the client the and results are as expected. If under the same conditions, the CGI application does a redirection using a relative path URL, information may not be available in STDIN as expected.

When the CGI application uses a relative path, internally IIS processes a redirect as a GET. This can present a problem for the CGI application. The information that the CGI application expects on STDIN, is not available. It is located in the QUERY_STRING variable instead.



WORKAROUND
To work around this problem, use the full URL in the CGI application instead of a relative path when a CGI application does a redirection.

Keywords: kbbug kbnofix KB221154

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.