Frank Jacobsen wrote:i still dont now why i have to read the response, when im not using it
Because the protocol says you have to. If you picked up the phone and dialed someone and didn't say anything when they said "hello", they'd hang up. They wouldn't sit there and talk to themselves.
The same thing applies here. The server has picked up the phone and done their part of the protocol. Until you actually start your part of the protocol, they aren't going to start processing because doing so is a waste of resources, in the server's opinion.
subject: Calling servlet from java, why does this code dosent work ?