Hi,

According to HttpClient Tutorial (1.1.1. HTTP request) there is
support for methods: GET, HEAD, POST, PUT, DELETE, TRACE and OPTIONS.
How I can make request using PATCH (RFC 5789) method or CONNECT ? I
choosed Apache HttpClient library because I throught it provides much
more flexibility than JDK HttpURLConnection.

I found there is one way to make new class, wchich extends one off
supported method (e.g. POST):

class HttpPatch extends HttpPost {
    public final static String METHOD_NAME = "PATCH";

    public HttpPatch(final String uri) {
        super(uri);
    }

    public String getMethod() {
        return "PATCH";
    }
}

Is this "correct" way ?

Thanks,
Grzegorz Szpetkowski

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to