Ejemplo n.º 1
0
  /**
   * Add the named field to the list of request fields.
   *
   * @param key key for the request header field.
   * @param value the value for the request header field.
   */
  protected void setRequestField(String key, String value) {
    /* https handles the proxy fields in a different way */
    if (key.startsWith("Proxy-")) {
      proxyHeaders.setProperty(key, value);
      return;
    }

    super.setRequestField(key, value);
  }