title: Invalid Signature - On publish products (using POST method) to Magento
body: <p>hi i am trying to POST products to Magento by below code</p>
  
  <pre><code>JSONObject productJson = new JSONObject();
                JSONObject productParameJson = new JSONObject();
                productParameJson.put("sku", "Chair100");
                productParameJson.put("name", "Chair");
                productParameJson.put("price", "100");
                productParameJson.put("status", "1");
                productParameJson.put("visibility", "1");
                productJson.put("product", productParameJson);
                OAuthRequest oauthRequestPost = new OAuthRequest(Verb.POST, "http://magentohost/api/rest" + "/products");
                oauthRequestPost.addHeader("Content_Type", "application/json");
                oauthRequestPost.addPayload(productJson.toString());
                service.signRequest(accessToken2, oauthRequestPost);
                Response apiResponsePost = oauthRequestPost.send();
                System.out.println(apiResponsePost.getCode());
                System.out.println(apiResponsePost.getBody());
  </code></pre>
  
  <p>But receives below error</p>
  
  <pre><code>{"messages":{"error":[{"code":401,"message":"oauth_problem=signature_invalid"}]}}
  </code></pre>
  
  <p>And in the same way if i try to GET the products lists using below code , i get lists of products.</p>
  
  <pre><code> OAuthRequest oauthRequest = new OAuthRequest(Verb.GET, "http://Magentohost/api/rest" + "/products");
                    service.signRequest(accessToken2, oauthRequest);
                    Response apiResponse = oauthRequest.send();
                    System.out.println(apiResponse.getCode());
                    System.out.println(apiResponse.getBody());
  </code></pre>
  
  <p>What am i doing wrong in POST method , please do help me in above.</p>