HttpExchange.getRequestBody().close() throws the following excpetion when the data is not read from the InputStream. In Many cases, he application may not need anything from InputStream.
java.io.IOException: Stream is closed
Attaching the program to produce it. Alos need the port of http.jar for JDK 1.5