httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject RFC conceptual problem - please help
Date Mon, 24 Jan 2000 15:26:11 GMT
Hi all,

I am trying to track down a bug in the reverse proxy code, and I need
some help in understanding what the correct Apache behavior should be.

In short, Apache is returning cached documents to the browser without a
corresponding MIME type in the headers. The browser (in our case, a WAP
phone) then has no idea what to do with the data and throws an error.

Here is the long explanation of the problem:

A request gets sent to the Apache reverse proxy, like so:

browser --> Apache

GET /kpno/ HTTP/1.0
Via: 1.0 WAPGW3
Connection: Keep-Alive
User-Agent: EricssonR320/R1A
Host: mmm.wapplaza.nl
Accept: application/vnd.wap.wmlc, application/vnd.wap.wbxml,
application/vnd.wap.wmlscriptc, */*, text/vnd.wap.wml, text/xml,
text/vnd.wap.wmlscript
Accept-Language: en

The document at this URL is actually a document living on a MS IIS
server running on the backend using ProxyPass. Apache sends a request to
this server like so:

Apache --> MSIIS

GET /kpno/ HTTP/1.0
Host: enlint009.ericsson.nl
Accept: application/vnd.wap.wmlc, application/vnd.wap.wbxml,
application/vnd.wap.wmlscriptc, */*, text/vnd.wap.wml, text/xml,
text/vnd.wap.wmlscript
Accept-Language: en
User-Agent: EricssonR320/R1A
Via: 1.0 WAPGW3
If-Modified-Since: Mon, 24 Jan 2000 07:26:42 GMT

Because Apache has already cached the document, it sends a request to
check if the document is up to date, adding the If-Modified-Since line.
MS IIS, answering the request, says that no, the document has not been
modified since the date, and returns this:

Apache <-- MSIIS

HTTP/1.1 304 Not Modified
Server: Microsoft-IIS/4.0
Date: Mon, 24 Jan 2000 12:39:13 GMT
Content-Location: http://enlint009.ericsson.nl/kpno/index.wml
ETag: "0252a5c3c66bf1:f4c"

Apache receives the above header, and gives the following *incorrect*
response back to the browser:

browser <-- Apache

HTTP/1.0 200 OK
Server: Microsoft-IIS/4.0
Date: Mon, 24 Jan 2000 12:39:13 GMT
Content-Location: http://enlint009.ericsson.nl/kpno/index.wml
ETag: "0252a5c3c66bf1:f4c"

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
...
[snip rest of body]

Notice how the headers returned to the browser are the exact same
headers that were returned from MSIIS - without the MIME type!

Who is at fault here? MSIIS or Apache?

I am assuming that the fix is to get Apache to send the headers cached
with the data, rather than the incomplete headers returned by MSIIS. I
would like to find out whether this is an Apache bugfix, or an IIS bug
workaround.

Can anyone give me the correct RFC behavior?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight...

Mime
View raw message