Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Java REST Call Help Needed


I’m trying to get the RESTful service working from Java. So far I’ve gotten pretty far in that I can use curl to verify the REST call works (get_projects) and I can connect to the RESTful service with the Java client. However, for the life of me I can’t seem to get the java app to send the “Content-Type: application/json” header. I’m using Spring’s RestTemplate which has worked great for other projects. Anyone out there have a working example I can take a look at, even if it’s not using RestTemplate?