1 Feb 2005 08:14
Unexpected Redirect on POST request
Andreas Sander <asander <at> aurenz.de>
2005-02-01 07:14:38 GMT
2005-02-01 07:14:38 GMT
Hello,
I use jetty as an embedded Webserver. The initialization is as follwing:
MortbayServer = new HttpServer();
SocketListener listener = new SocketListener();
listener.setInetAddrPort(new InetAddrPort(ip, Integer.parseInt(port)));
MortbayServer.addListener(listener);
HttpContext context = new HttpContext();
context.setContextPath("/soap");
context.addHandler(new XMLHandler());
MortbayServer.addContext(context);
MortbayServer.start();
XMLHandler is a handler I have written myself and shall work as an embedded
SOAP-Server. It is based on AbstractHandler and implements only the handle()
function
Now following is happening: Everytime a client connects to me and sends a POST
request like this one:
POST /soap HTTP/1.1
Content-Type: text/xml
User-Agent: XML Spy
SOAPAction: "urn:#Anwenderanfrage"
Host: 192.168.1.101
Content-Length: 434
(Continue reading)
RSS Feed