> -----Original Message-----
> From: Konstantin Preißer [mailto:kpreis...@apache.org]
> Sent: Monday, March 3, 2014 5:19 PM
> To: 'Tomcat Users List'
> Subject: Tomcat 8.0.3 hangs when ISAPI redirector sends an AJP request
> without request body

<snip>

> Note: I do not yet have examined what AJP packets are sent between
> Tomcat and ISAPI Redirector.

When sending the following request to IIS:
POST /TestWebapp/Servlet HTTP/1.1
Host: localhost
Connection: keep-alive
Content-Length: 0

Then the ISAPI redirector sends the following AJP packet to Tomcat:

[ID 3] Data - Offset: 0x0, Count: 0xB1.
12 34 00 AD 02 04 00 08 48 54 54 50 2F 31 2E 31 00 00 13 2F   
.4.­....HTTP/1.1.../
54 65 73 74 57 65 62 61 70 70 2F 53 65 72 76 6C 65 74 00 00   
TestWebapp/Servlet..
09 31 32 37 2E 30 2E 30 2E 31 00 00 09 31 32 37 2E 30 2E 30   
.127.0.0.1...127.0.0
2E 31 00 00 09 6C 6F 63 61 6C 68 6F 73 74 00 00 50 00 00 03   
.1...localhost..P...
A0 06 00 0A 6B 65 65 70 2D 61 6C 69 76 65 00 A0 08 00 01 30    ...keep-alive. 
...0
00 A0 0B 00 09 6C 6F 63 61 6C 68 6F 73 74 00 03 00 00 00 04   . 
...localhost......
00 00 00 0A 00 0F 41 4A 50 5F 52 45 4D 4F 54 45 5F 50 4F 52   
......AJP_REMOTE_POR
54 00 00 05 34 39 34 38 32 00 0A 00 10 4A 4B 5F 4C 42 5F 41   
T...49482....JK_LB_A
43 54 49 56 41 54 49 4F 4E 00 00 03 41 43 54 00 FF            CTIVATION...ACT.ÿ

To me, this looks ok - as the request body is 0 (known in advance) AFAIK only 
the JK_AJP13_FORWARD_REQUEST packet should be sent to Tomcat.
Note, that the "Content-Length: 0" header is correctly included in the packet: 
"A0 08 00 01 30" (0xA008 represents "Content-Length").


Regards,
Konstantin Preißer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to