Is accessing a servlet through a java client possible.

Is it possible to call a servlets method (say doPost) from a standalone java application?How can we do this? I think for connecting to a servlet I would need to create an HTTP Request object and pass it to a specific URL. This is what the browser does. Am I right?
[285 byte] By [Nandan.Srivastavaa] at [2007-11-26 20:08:23]
# 1
I have done this in several propjects and recommend using the Apache Commons HttpClient project.
tolmanka at 2007-7-9 23:11:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
If you only need to make a GET request and receive the generated content without much interaction, URL and HttpURLConnection can do it without too much pain ;-)
benubacha at 2007-7-9 23:11:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...