CORRECTION: Can a servlet receive a response to its own request?

2005-05-18 Thread Michael Mehrle
Simple question, but it's driving me nuts. I really don't want to get into the whole web service business - all I need is for a servlet to be the recipient of its own request. Or - in other words - can a servlet act like a web browser - just without the GUI? Use case: - Servlet issues https

Re: CORRECTION: Can a servlet receive a response to its own request?

2005-05-18 Thread Atanu Neogi
Make your servlet act like a java HTTPS client using the java.net.URL, java.net.HttpURLConnection and javax.net.ssl.HttpsURLConnection classes. Read from the response input stream (using java.io. classes) returned by the connection. You will need to write your own hostname verifier and have