REST API を使用して、Java プログラムで作業項目を作成/変更したいと考えています。私のサーバーは Apache-coyote/1.1 です。
HttpClient client = new DefaultHttpClient();
JSONObject JSONobj = new JSONObject();
System.out.println("hello ");
HttpPost post = new HttpPost("https://");
post.setHeader("Content-Type", "application/json ");
post.setHeader("xyz","abcd"); //userid and password
StringEntity input = new StringEntity(JSONobj.toString());
System.out.println("hello ");
post.setEntity(input);
System.out.println("hello ");
HttpResponse response = client.execute(post);