private static void printHeaders(CharacterHttpResponse response) {
    System.out.println(response.getStatusLine());

    for (HttpHeader next : response.getHeaders()) {
      System.out.printf("%s: %s\n", next.getName(), next.getValue());
    }
  }
  private static String getLocationFromHeader(CharacterHttpResponse response) {
    for (HttpHeader next : response.getHeaders()) {
      if (next.getName().contains("Location")) {
        return next.getValue();
      }
    }

    return null;
  }