I'm attempting to Publish some parameters to some server, but I have to setup the proxy. are you able to assist me to to to sort it "setting the proxy" a part of my code ?

        HttpHost proxy = new HttpHost("xx.x.x.xx");

        DefaultHttpClient httpclient = new DefaultHttpClient();

        httpclient.getParams().setParameter("3128",proxy);


        HttpPost httpost = new HttpPost(url);
        List<NameValuePair> nvps = new ArrayList<NameValuePair>();

        nvps.add(new BasicNameValuePair("aranan", song));

        httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));

        HttpResponse response = httpclient.execute(httpost);
        HttpEntity entity = response.getEntity();

        System.out.println("Request Handled?: " + response.getStatusLine());

        in = entity.getContent();

        httpclient.getConnectionManager().shutdown();

Yes I taken care of my very own problem,this line

httpclient.getParams().setParameter("3128",proxy);

ought to be

httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,proxy);

Complete Illustration of a Apache HttpClient 4.1, setting proxy are available below

HttpHost proxy = new HttpHost("ip number",port number);
            DefaultHttpClient httpclient = new DefaultHttpClient();
            httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,proxy);


            HttpPost httpost = new HttpPost(url);
            List<NameValuePair> nvps = new ArrayList<NameValuePair>();

            nvps.add(new BasicNameValuePair("param name", param));

            httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.ISO_8859_1));

            HttpResponse response = httpclient.execute(httpost);
            HttpEntity entity = response.getEntity();

            System.out.println("Request Handled?: " + response.getStatusLine());

            InputStream in = entity.getContent();

                    httpclient.getConnectionManager().shutdown();