requestHeaders.set( "Accept", "*/*" ) ("application/json" didn't work)
This one works:
HttpHeaders requestHeaders = new HttpHeaders();
requestHeaders.set( "Accept", "*/*" );
HttpEntity<?> requestEntity = new HttpEntity( requestHeaders );
HttpEntity response = rest(). http://goo.gl/KUao exchange ( url() +
"/api/storage/{repoName}/{groupId}/{artifactId}",
HttpMethod.GET,
requestEntity,
String.class,
repoName(), serviceName, dataType );
String body = response.getBody();
-----
Best regards,
Evgeny
http://evgeny-goldin.com/
--
View this message in context:
http://forums.jfrog.org/REST-API-returns-406-Not-Acceptable-when-working-with-Spring-3-RestTemplate-tp5231906p5243669.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users