Code example for URLConnection

Methods: getInputStream, getOutputStream, setDoOutput

0
					// Send data					 
					URL url = new URL("http://iamapark.cafe24.com/getIdeaReply.jsp");
					URLConnection conn = url.openConnection();
 
					// If you invoke the method setDoOutput(true) on the URLConnection, it will always use the POST method. 
					conn.setDoOutput(true);
					OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
					wr.write(data);
					wr.flush();
 
					// Get the response 
					is = conn.getInputStream();
					 
					findReply(); 
 
					//textview.setText(response.trim()); 
					wr.close();
					is.close();
				 
				}  
				catch (Exception e) {