Key value content in body x-www-form-urlencoded
I need to perform both basic auth and pass www-form-urlencoded data in the body. How can i code in java using http to get response data obtained after passing above data to the url.
Key value content in body x-www-form-urlencoded
I need to perform both basic auth and pass www-form-urlencoded data in the body. How can i code in java using http to get response data obtained after passing above data to the url.
After I worked on it I got the below code which works.
I hope this helps and welcome any other method for the above question or optimization of the above code.