I have a cURL command from icescrum API for authentication, and want to know its equivalent java program to use in a jsp page.
curl -H "Accept: application/json" -u yourUsername:yourPassword \
--verbose http://domain/icescrum/ws/p/YOURPROJ/story
Any help would be appreciated.