Received: (qmail 55823 invoked by uid 501); 4 Dec 2001 23:49:21 -0000 Message-Id: <20011204234921.55822.qmail@apache.org> Date: 4 Dec 2001 23:49:21 -0000 From: Ted Western Reply-To: twestern@pumatech.com To: submit@bugz.apache.org Subject: ServerSupportFunction() with HSE_REQ_SEND_URL_REDIRECT_RESP flag sends status code 200 instead of 302 X-Send-Pr-Version: 3.110 >Number: 8944 >Category: mod_isapi >Synopsis: ServerSupportFunction() with HSE_REQ_SEND_URL_REDIRECT_RESP flag sends status code 200 instead of 302 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Dec 04 15:50:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: twestern@pumatech.com >Release: 2.0.28 >Organization: apache >Environment: Windows 2000 SR2 Microsoft VC++ 6.0 SR5 >Description: My ISAPI extension makes use of the CHttpServerContext::ServerSupportFunction to redirect clients. When this method is called with the HSE_REQ_SEND_URL_REDIRECT_RESP flag, a status code of 200 with a "Location: .." header is sent. The client sees the 200 status and thinks its work is done, displaying a blank page. If the correct status code of 302 were sent, the client would redirect to the target URL and not display the blank page. FYI, if I use the HSE_REQ_SEND_URL flag instead of the HSE_REQ_SEND_URL_REDIRECT_RESP flag, my client correctly loads the target page. This is because Apache has fetched the target page and simply respondeds with it. >How-To-Repeat: Create a simple ISA that uses the ServerSupportFunction with the HSE_REQ_SEND_URL_REDIRECT_RESP flag. Then simply invoke the functionality. >Fix: The ServerSupportFunction with the HSE_REQ_SEND_URL_REDIRECT_RESP flag should always return a 302 status code, as per the MSDN documentation. >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]