This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I want to send and receive multiple request/response using Single conection of HttpsURLConnection.
but when i try using single connection for second request it gives me exception java.net.ProtocolException: Cannot write output after reading input please help me....
I remember having similar problems with HttpsURLConnection once, the thing is to get output from HttpsURLConnection, you have to first write things that you need to output stream, close it(!), and then start reading input stream. I don't know how to make multiple requests and responses though, my wild guess is that you could play with keepAlive parameter, or just use some kind of connection caching framework.