Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty 9 http client post and put problem

Hi,

    I am testing a simple Jetty 9 http client with the following code:

            HttpClient httpClient = new HttpClient();
URI uri = new URI("http://myserver.com/serverprog?param=http://someuri.com";);
            httpClient.start();
            HttpRequest r = new HttpRequest(httpClient, uri);
            r.method(HttpMethod.POST);

It works beautifully for POST, but if I change it to PUT, the "?param=http://someuri.com"; doesn't get passed to the server where it does with the POST. Any thoughts? Thanks, Erich


Back to the top