Sending Name Value Pair in POST using Jersey Client
问题 How can i pass name value pairs as body to a POST ReST Service in Jersey. Something similar to the code below using Apache Commons PostMethod final PostMethod post = new PostMethod(url); post.setRequestBody(new NameValuePair[] { new NameValuePair("loginId", userId), new NameValuePair("logonPassword", password), new NameValuePair("signature", signature), new NameValuePair("timestamp", timestamp), new NameValuePair("sourceSiteId", sourceSiteId) }); I'm porting this call to my application. The