Get request can done as follows:
DefaultHttpClient httpCleint = new DefaultHttpClient();
HttpGet getReq = new HttpGet("http://<your_url>");
HttpResponse response = httpCleint.execute(getReq);
for posting data to the server you can have a look at the thread
http://www.anddev.org/viewtopic.php?p=13027Regards/