}
public void run() {
long time1 = new Date().getTime();
try {
URL target = param.url;
HttpURLConnection conn = (HttpURLConnection) target.openConnection();
conn.setRequestMethod(param.method);
int i;
for( i = 0; i < param.length; i++ ) {
conn.setRequestProperty(param.key[i], param.value[i]);
}
conn.connect();
BufferedReader in = new BufferedReader(
new InputStreamReader(conn.getInputStream()));
String inputLine;
while( (inputLine = in.readLine()) != null );
}
catch(Exception e) {
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/