-1

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.

jww
  • 97,681
  • 90
  • 411
  • 885
user3238904
  • 11
  • 1
  • 2

1 Answers1

0

You may use HttpClient in your case, as it appears that you are trying to make http calls using curl. Link for using HttpClient.

Abhishek
  • 422
  • 4
  • 13
  • I downloaded it but there isn't any mention to curl neither in tutorial nor the example :( – user3238904 Aug 23 '14 at 03:11
  • That's right. There is no "curl" command in HttpClient. You use HttpClient instead of a "curl" command. Read the tutorials. – Stephen C Aug 23 '14 at 03:48
  • Right Stephen. HttpClient is used to make http calls and it is widely used in enterprise software's as well. – Abhishek Aug 23 '14 at 03:54
  • but my problem is with adding the arguments to it i saw a couple of codes around the net with different approaches i want to now the simple code snippet for these special arguments here like -u --verbose,etc – user3238904 Aug 23 '14 at 05:06