I have a servlet running on the local machine called MyServlet. I'm trying to invoke it's doPost method from a separate Java program. Using google, i found that this code should work, but i'm having problems: as soon as I reach the BufferedWriter out = .... line, I get the exception:
java.net.ConnectException: Connection refused: connect
i think i have the URL right and the servlet is running (on Tomcat), so what else could cause this issue?
java.net.ConnectException: Connection refused: connect
i think i have the URL right and the servlet is running (on Tomcat), so what else could cause this issue?