Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Passing parameters using httpCLient

Hi,

I am using jetty9 and running into issues while passing parameters using POST - 

My service exposes multiple operations - op1(param1,param2) op2(param1,param2)

I want to invoke op1(param1,param2) using jetty's httpClient and both parameters are not strings.

HttpClient client = new HttpClient();
client.start();
ContentResponse response = httpClient.POST("http://www.example.com/myService");

reponse.Param() accepts only String pairs.

How do I specify -

1. Method I want to call as op1 

2. Pass in two params, param1 and param2 that are not strings


Please help!


Thanks!


Back to the top