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
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