Code example for ProtocolException

Methods: printStackTrace

0
		conn.setDoOutput(true);// ��������
		conn.setUseCaches(false); // ������ʹ�û���
		try { 
			conn.setRequestMethod("POST");
		} catch (ProtocolException e) {
			e.printStackTrace();
 
			return false; 
		} 
		conn.setRequestProperty("connection", "keep-alive");
		conn.setRequestProperty("Charsert", "UTF-8");
		conn.setRequestProperty("Content-Type", MULTIPART_FROM_DATA
				+ ";boundary=" + BOUNDARY);
		conn.setChunkedStreamingMode(1024 * 2014 * 2);
 
		return true; 
	} 
 
	/** 
	 * д��Post���� 
	 * @param outStream