URL httpurl = new URL("http://10.4.130.64:9060/ibm/console/login.do");
HttpURLConnection httpcon = (HttpURLConnection) httpurl.openConnection();
httpcon.setRequestMethod("GET");
httpcon.setDoInput(true);
httpcon.setDoOutput(true);
OutputStream out = httpcon.getOutputStream();
out.write(10);
out.flush();
httpcon.connect();
int statusCode = httpcon.getResponseCode();
if (statusCode != 200 ){
//Do Somthing
}
HttpURLConnection httpcon = (HttpURLConnection) httpurl.openConnection();
httpcon.setRequestMethod("GET");
httpcon.setDoInput(true);
httpcon.setDoOutput(true);
OutputStream out = httpcon.getOutputStream();
out.write(10);
out.flush();
httpcon.connect();
int statusCode = httpcon.getResponseCode();
if (statusCode != 200 ){
//Do Somthing
}
เวบที่น่าสนใจ http://web-sniffer.net/
0 comments:
แสดงความคิดเห็น