I have a curl command as:
curl -v -k –location –request POST
‘https://10.31.122.2/myap/v1/tickets/’
–header ‘Authorization: Basic cmM0amk6Wmkld18xMjN0’
–header ‘Content-Type: application/x-www-form-urlencoded’
–data-urlencode ‘username=myusername’
–data-urlencode ‘password=mypassword’
I want to capture this in java program.
What library is best suited for this?
I am trying to work with jersey, buT unable to find methods to capture all these parts.
1