Code example for BrowserCompatSpec

public class PortalAPI  
	String SessionID = "";
	Cookie sessionCookie;
	CookieSpecBase cookieSpecBase = new BrowserCompatSpec();
	public String Login(List<NameValuePair> Credentials) 
		// Create a new HttpClient and Post Header   
		HttpClient httpclient = new DefaultHttpClient();  
		HttpPost httppost = new HttpPost("");  
		HttpResponse response = null;
		JSONObject json;
		String Success;
			httppost.setEntity(new UrlEncodedFormEntity(Credentials));  
			response = httpclient.execute(httppost);  
Stop searching for code, let great code find you!  Add Codota to your java IDE