hello,
I am writing a console application to send multiple requests to the Northwest Airlines web server. As soon as I send a query string, I receive a page having a meta tag giving the url of the page where the request could be redirected. I am using the same urlConnection to first send my request, get the output from the server, then send back the query to the new url and get the page having the final result.
However, I am getting the following exception:
Exception in thread "main" java.net.ProtocolException: Cannot write output after reading input.
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
Can anybody help me out with how to take care of this,
Thanks,
Sid