Code example for BasicHttpContext

Methods: setAttribute

0
		//httpclient.getParams().setParameter(HTTP.USER_AGENT,  
		//		"Mozilla/5.0 (Windows NT 6.2; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"); 
		 
		 
		cookieStore = new BasicCookieStore();
		httpContext = new BasicHttpContext();
		httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);
		 
		httpclient.setCookieStore(cookieStore);
		//httpclient.setRedirectHandler(D) 
		if(LoginToSystem()) 
		{ 
			//	Logged in. 
			//	Need to load the specified page. 
			String pagetext = "";
			if(this.UsePost) { pagetext = GetPagePost(this.URL, null); }
			else { pagetext = GetPageGet(this.URL); }
			this.ResultHTML = pagetext;
		} 
		else 
		{