public RequestHeader(final String header) {

		this.header = header;
		
		final BufferedReader buff = new BufferedReader(new StringReader(this.header));
		String line;
		boolean isfirstLine = true;
		try {
			line = buff.readLine();
			while (line != null) {
				if (!line.trim().isEmpty()) {
					if (!isfirstLine) {
						final String key = line.substring(0, line.indexOf(':'));
						final String value = line.substring(line.indexOf(':') + 1, line.length());
						getParameter().put(key, value);
					}
				} else {
					break;
				}

				// parse the first line of the request to find the URL to call
				if (isfirstLine) {
					firstLine = line;
					final String[] split = line.split(" ");
					type = split[0];
					if (split.length > 1) {
						url = split[1].trim();
					}
					if (split.length > 2) {
						httpVersion = split[2].trim();
					}
					isfirstLine = false;
				}
				line = buff.readLine();
			}
		} catch (final IOException e) {
		}

	}