Yes, POST works, PUT doesn't (meaning the param doesn't get passed).

On 4/4/2013 1:50 PM, John English wrote:
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?

_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to