I heed help with HTTP POST/GET in a client/servlet environment. I want to write a Java client and servlet. They will communicate via HTTP to POST/GET XML documents.
This is using Apache Tomcat on the server side.
I have the start a client and servlet code. My client applet can connect to the my server using this string: ("http://localhost:8080/IPCServer
IPCServer is the name of my servlet. By using my browser and entering the connection string, I get a response from my servlet - it puts out some HTML to the browser. However, I can't get my servlet to respond to my client applet. Below is the code in my applet. What am I doing wrong?
//Content-Type is must to pass parameters in POST Request
String testData = URLEncoder.encode("This is my test data", "UTF-8");
OutputStreamWriter out = new OutputStreamWriter(urlConn
out.write("string=" + testData);