클라이언트에서 서버에서 어떤 요청이나 응답을 주는걸 받을 수 있나요?
받을 수 있다면 어떠한 메소드로 받아야 하나요?
즉 post로 보내고나서 제대로 갔는지를 확인하기 위한 방법이 무엇이 있을까요?
단순히 보낸 곳의 php 를 getInputStream으로 읽는 방법 말고는 없는건가요?
요거 말씀하신건가요?
URL u = new URL("http://aaa.com/index.html);
HttpURLConnection c = (HttpURLConnection) u.openConnection();
c.setRequestMethod("GET");
c.setDoOutput(true);
c.setUseCaches(true);
c.connect();
System.out.print(c.getResponseMessage());// OK
InputStream in = c.getInputStream();
로그인 유지
요거 말씀하신건가요?
URL u = new URL("http://aaa.com/index.html);
HttpURLConnection c = (HttpURLConnection) u.openConnection();
c.setRequestMethod("GET");
c.setDoOutput(true);
c.setUseCaches(true);
c.connect();
System.out.print(c.getResponseMessage());// OK
InputStream in = c.getInputStream();