Cannot write output after reading input
843841Feb 15 2006 — edited Feb 15 2006Hi,
I am using HttpURLConnection object, and I am reading a fine and setting to getOutputStream for sending an XML file as an input. But I am getting "java.net.ProtocolException: Cannot write output after reading input. at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.URLConncetionImpl.getOutputStream(Unknown Source) at .......................
Can any body suggest me how to overcome this Exception. If possible give me sample code.
Thanks,