tags:

views:

30

answers:

1

Hi,

I'm writing a little Java app which implements an http service that receives http post commands from a client.

The class I'm using to implement all of this is HttpHandler and HttpServer in the com.sun.net. package.

Now I'm implementing an handle(HttpExchange exchange) function which handles the request, and I'm having truble reading the post values received by the request because the only access that I have to these values is via HttpExchange.getResponseBody() which is just an output stream.

I'm looking to parse txt post values and uploaded files.

Please help.

Thanks.

A: 

An alternative would be using HttpServer from HttpCore.

antispam