Skip to main content

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

On 04/04/2013 19:58, Erich Bremer wrote:
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

You really mean PUT vs. POST rather than GET vs. POST?
--
John English


Back to the top