httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40185] New: - mod_isapi responses Content-Length: 0 and removes HTTP content
Date Fri, 04 Aug 2006 14:37:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40185>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40185

           Summary: mod_isapi responses Content-Length: 0 and removes HTTP
                    content
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mod_isapi
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jochenk@prolib.de
                CC: wrowe@apache.org


I'm watched this behaviour with version mod_isapi-416293.zip as cited
in bug 16637. Based on comments at bug 40067 we have an unexpected HTTP result
according to Content-Length and no Content. Although the HTTP code now seems
better - less unexpected 500 and regular ones like 200, 302 and 401 - there is
currently no content in the HTTP response.

I examined the HTTP calls with wget and Fiddler and both tools actually show
Content-Length: 0 and no HTML part of the response (while using our own ISAPI
extension called Active FoxPro Pages).

Here is a sample of a wget trace calling a HTTP redirecting page:
DEBUG output created by Wget 1.10.2 on cygwin.

--16:33:22--  http://localhost/random.afp
           => `random.afp'
Resolving localhost... 127.0.0.1
Caching localhost => 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
Created socket 4.
Releasing 0x10042918 (new refcount 1).

---request begin---
GET /random.afp HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Host: localhost
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 302 object has moved
Date: Fri, 04 Aug 2006 14:33:22 GMT
Server: Apache/2.2.3 (Win32)
Expires: Fri, 04 Aug 2006 16:33:21 GMT
Content-Length: 0
Location: ./?id=GetBlogged20060222                                
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html

---response end---
302 object has moved
Registered socket 4 for persistent reuse.
Location: ./?id=GetBlogged20060222 [following]
Skipping 0 bytes of body: [] done.
--16:33:22--  http://localhost/?id=GetBlogged20060222
           => `index.html@id=GetBlogged20060222'
Disabling further reuse of socket 4.
Closed fd 4
Found localhost in host_name_addresses_map (0x10042918)
Connecting to localhost|127.0.0.1|:80... connected.
Created socket 4.
Releasing 0x10042918 (new refcount 1).

---request begin---
GET /?id=GetBlogged20060222 HTTP/1.0
User-Agent: Wget/1.10.2
Accept: */*
Host: localhost
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 200 OK
Date: Fri, 04 Aug 2006 14:33:22 GMT
Server: Apache/2.2.3 (Win32)
Expires: Fri, 04 Aug 2006 16:33:21 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Powered-By: AFP/3.0.604 
Set-Cookie: afpcookie=EC75C3788DB3214C98BBED8AC092B81C; path=/
Set-Cookie: AfpWiki=.de.; expires=Wed, 31-Jan-2007 00:00:00 GMT; path=/;
domain=localhost
Content-Length: 0
Last-Modified: Fri, 04 Aug 2006 14:33:22 GMT
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html

---response end---
200 OK
Registered socket 4 for persistent reuse.

Stored cookie localhost -1 (ANY) / <session> <insecure> [expiry none] afpcookie
EC75C3788DB3214C98BBED8AC092B81C
cdm: 1 2
Stored cookie localhost -1 (ANY) / <permanent> <insecure> [expiry 2007-01-31
01:00:00] AfpWiki .de.
Length: 0 [text/html]

    0K                                                           0.00 B/s

16:33:22 (0.00 B/s) - `index.html@id=GetBlogged20060222' saved [0/0]
=================================================================

And here's raw output of Fiddler:
HTTP/1.1 302 object has moved
Date: Fri, 04 Aug 2006 14:20:54 GMT
Server: Apache/2.2.3 (Win32)
Expires: Fri, 04 Aug 2006 16:20:53 GMT
Content-Length: 0
Location: ./?id=DesignPatternDecorator
Content-Type: text/html

(next request/response)
HTTP/1.1 500 Fiddler - Bad Response
Content-Type: text/html
Connection: close
=================================================================

I looks like mod_isapi cuts the content part (after the blank line of the HTTP
header) off and responds no HTML (or whatever) data.

Sadly, I've less experiences in C/C++ to debug the mod_isapi module directly.
Maybe someone could give me a helping hand to setup and trace this more precisely.

Thanks

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message