I want to make an Http Connection to my own servlet. Here is my code:
try { HttpClient client = new DefaultHttpClient(); HttpPost httpMethod = new Ht
The better is that you put your PC LAN's IP , for example , in windows , run "ipconfig" in a cmd console , suppose that your IP is : 192.168.1.34 , then
HttpPost httpMethod = new HttpPost("http://192.168.1.34:8080/getHeader/HeaderServlet");