private void processCookies(String setCookie) throws Exception{
		
		//=================================
		//init
		Reader input = new StringReader(setCookie);
		int n = 0;
		
		//=================================
		//parse Set-Cookie
		pairLoop: while(n != -1){
			//init pair
			StringBuilder key = new StringBuilder();
			StringBuilder value = new StringBuilder();
			boolean keyStarted = false;
			
			keyLoop: while(true){
				n = input.read();
				switch(n){
					case '=':
						//end of key
						break keyLoop;
						
					case ';':
						//end of pair
						value.append("true");
						cookies.put(key.toString(), value.toString());
						continue keyLoop;
					
					case -1:
						//end of stream
						value.append("true");
						cookies.put(key.toString(), value.toString());
						break pairLoop;
						
					case ' ':
						//starting spaces are unneeded!
						if (keyStarted) key.append((char)n);
						continue;
						
					default:
						keyStarted = true;
						key.append((char)n);
						continue;
				}
			}
			
			//value reader loop
			while((n=input.read()) != -1){
				if(n == ';'){
					//end of value
					break;
				}else{
					value.append((char)n);
				}
			}
			
			//store pair
			cookies.put(key.toString(), value.toString());
		}
	}