Code example for AndroidHttpClient

Methods: execute

0
			e.printStackTrace();
			throw new GOMStreamException(GOMStreamException.ERROR_LOGIN, "Couldn't build POST parameter list, malformed username/password?");
		} 
		// Execute request 
		try { 
			resp = m_httpclient.execute(req, m_httpcontext);
		} catch (IOException e) {
			e.printStackTrace();
			throw new GOMStreamException(GOMStreamException.ERROR_LOGIN,"Login error");
		} 
		// If we don't get a response, fail 
		if(resp == null)
			throw new GOMStreamException(GOMStreamException.ERROR_LOGIN, "Response was null");
 
		// If we didn't get any cookies, fail 
		if(m_cookies.getCookies().size() == 0)
			throw new GOMStreamException(GOMStreamException.ERROR_LOGIN, "Did not get cookies, wrong username/password?");
		m_loggedin = true;
		Log.d(TAG, "Logged in!");
	}