java submit html form
자바에서 html form형식으로 submit하는 예제입니다.import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.methods.PostMethod; HttpClient httpClient = new HttpClient(); PostMethod postMethod = new PostMethod(url); //url에 주소를 적어주세요. postMethod.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=EUC-KR"); post..
프로그램 언어/Java
2015. 2. 17. 19:16