ByteCountInputStream urlIn = new ByteCountInputStream(conn.getInputStream());
Scanner sc = new Scanner(urlIn);
while (sc.hasNextLine())
out.write(sc.nextLine());
sc.close();
trafficDown += urlIn.numBytesRead();
}
public void get(String url, Map<String, String> params) throws IOException {
get(url + "?" + getParamString(params));
}