public static String post(String adress,List<String> keys,List<String> values) throws IOException
    {
        String result = "";
        OutputStreamWriter writer = null;
        BufferedReader reader = null;
        try  
        {
            String data="";
            if(keys != null && values != null)
            for(int i=0;i<keys.size();i++)
            {
                if (i!=0) data += "&";
                data +=URLEncoder.encode(keys.get(i), "UTF-8")+"="+URLEncoder.encode(values.get(i), "UTF-8");
            }
            URL url = new URL(adress);
            URLConnection conn = url.openConnection();
            conn.setDoOutput(true);
            writer = new OutputStreamWriter(conn.getOutputStream());
            writer.write(data);
            writer.flush();
            reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            String ligne;
            int i = 0;
            while ((ligne = reader.readLine()) != null)
            {
                result+=(i != 0 ? "\n" : "")+ligne;
                i++;
            }
        }
        catch (IOException e) 
        {
            throw e;
        }
        finally
        {
            try
            {
                writer.close();
            }
            catch(Exception e)
            {
                ;
            }
            try
            {
                reader.close();
            }
            catch(Exception e)
            {
                ;
            }
        }
        return result;
    }