public Example() {
		HttpClient client = new DefaultHttpClient();
		HttpGet httpget = new HttpGet("http://hc.apache.org/httpclient-3.x/dependencies.html");
		HttpResponse response;
		try {
			response = client.execute(httpget);
			HttpEntity entity = response.getEntity();
			if (entity != null) {
			    //InputStream instream = entity.getContent();
			    System.out.println("entramo");
			    try {
			    	System.out.println(EntityUtils.toString(entity));
			    } finally {
								        
			    }
			}	
			
			List<NameValuePair> list = new ArrayList<NameValuePair>(){
				@Override
				public String toString() {
					ListIterator<NameValuePair> i = this.listIterator();
					StringBuilder sb = new StringBuilder();
					while(i.hasNext()){
						sb.append(i.next()+"&");
					}
								
					return sb.substring(0,sb.length()-1).toString(); 
				}
			};
			list.add(new BasicNameValuePair("param1", "1"));
			list.add(new BasicNameValuePair("param2", "2"));
			System.out.println(list.toString());
				
		} catch (ClientProtocolException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}