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

When you say "doesn't get passed to the server", does this mean ...

You've traced the call on the network and verified that the parameters are being sent from the client to the server over the wire?
Or that you've attempted to get these parameters out of the HttpServletRequest object on the server side and failed to get any data?

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts


On Thu, Apr 4, 2013 at 9:58 AM, Erich Bremer <erich@xxxxxxxxxxx> 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
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top