private void parseLine(String line) {
		String lineLower = line.toLowerCase();
		if (lineLower.startsWith("get ")) {
			// GET /action/2 HTTP/1.1
			requestType = REQUEST_TYPE_GET;
			parseURLPath(line);
		} else if (lineLower.startsWith("post ")) {
			// GET /action/2 HTTP/1.1
			requestType = REQUEST_TYPE_POST;
			parseURLPath(line);
		} else if (lineLower.startsWith("put ")) {
			// PUT /action/2 HTTP/1.1
			requestType = REQUEST_TYPE_PUT;
			parseURLPath(line);
		} else if (lineLower.startsWith("delete ")) {
			// DELETE /action/2 HTTP/1.1
			requestType = REQUEST_TYPE_DELETE;
			parseURLPath(line);
		} else if (lineLower.startsWith("content-length: ")) {
			contentLength = Integer.parseInt((line
					.substring(("content-length:").length())).trim());

		} else if (lineLower.startsWith("cookie: ")){
                    String cookieline = line;
                    cookieline = line.substring(8);
                    // >> Parse cookies
                    try{
                        List<HttpCookie> parsedCookies = HttpCookie.parse(cookieline);
                        for(HttpCookie cookie:parsedCookies){
                            cookies.put(cookie.getName(), cookie);
                        }
                    }catch(IllegalArgumentException e){
                    
                    }
                    // << Parse cookies
                }
	}