You need to send either a Content-Length header or a Transfer-Encoding 
header on the request (actually, to comply with HTTP/1.0, you need 
Content-Length, but Tomcat accepts both).  Otherwise, Tomcat correctly 
assumes that the Request body is empy.

"Jochen Wiedmann" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Hi,

can anybody please be so kind and validate the following request.
According to Tomcat, it is invalid somehow, because
HttpServletRequest.getInputStream() always returns nothing. However, I
am unable to determine a cause.

Thanks,

Jochen

--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)


POST /XMLRPC-79/servlet/info HTTP/1.0
User-Agent: Apache XML RPC 3.0 (Lite HTTP Transport)
Host: localhost:8080
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8"?><methodCall
xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions";><methodName>Status.add</methodName><params><param><value><i4>33</i4></value></param><param><value><i4>9</i4></value></param></params></methodCall>


00000000: 504f 5354 202f 584d 4c52 5043 2d37 392f  POST /XMLRPC-79/
00000010: 7365 7276 6c65 742f 696e 666f 2048 5454  servlet/info HTT
00000020: 502f 312e 300d 0a55 7365 722d 4167 656e  P/1.0..User-Agen
00000030: 743a 2041 7061 6368 6520 584d 4c20 5250  t: Apache XML RP
00000040: 4320 332e 3020 284c 6974 6520 4854 5450  C 3.0 (Lite HTTP
00000050: 2054 7261 6e73 706f 7274 290d 0a48 6f73   Transport)..Hos
00000060: 743a 206c 6f63 616c 686f 7374 3a38 3038  t: localhost:808
00000070: 300d 0a43 6f6e 7465 6e74 2d54 7970 653a  0..Content-Type:
00000080: 2074 6578 742f 786d 6c0d 0a0d 0a3c 3f78   text/xml....<?x
00000090: 6d6c 2076 6572 7369 6f6e 3d22 312e 3022  ml version=3D"1.0"
000000a0: 2065 6e63 6f64 696e 673d 2255 5446 2d38   encoding=3D"UTF-8
000000b0: 223f 3e3c 6d65 7468 6f64 4361 6c6c 2078  "?><methodCall x
000000c0: 6d6c 6e73 3a65 783d 2268 7474 703a 2f2f  mlns:ex=3D"http://
000000d0: 7773 2e61 7061 6368 652e 6f72 672f 786d  ws.apache.org/xm
000000e0: 6c72 7063 2f6e 616d 6573 7061 6365 732f  lrpc/namespaces/
000000f0: 6578 7465 6e73 696f 6e73 223e 3c6d 6574  extensions"><met
00000100: 686f 644e 616d 653e 5374 6174 7573 2e61  hodName>Status.a
00000110: 6464 3c2f 6d65 7468 6f64 4e61 6d65 3e3c  dd</methodName><
00000120: 7061 7261 6d73 3e3c 7061 7261 6d3e 3c76  params><param><v
00000130: 616c 7565 3e3c 6934 3e33 333c 2f69 343e  alue><i4>33</i4>
00000140: 3c2f 7661 6c75 653e 3c2f 7061 7261 6d3e  </value></param>
00000150: 3c70 6172 616d 3e3c 7661 6c75 653e 3c69  <param><value><i
00000160: 343e 393c 2f69 343e 3c2f 7661 6c75 653e  4>9</i4></value>
00000170: 3c2f 7061 7261 6d3e 3c2f 7061 7261 6d73  </param></params
00000180: 3e3c 2f6d 6574 686f 6443 616c 6c3e       ></methodCall> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to