I want to add username and password in post url with basic authentication
http://IPaddress:port/F1/Details { Body }
I want to add username and password in post url with basic authentication
http://IPaddress:port/F1/Details { Body }
Your not specified the programming language but if you are using c# it will be like this:
HttpClient client = new HttpClient();
var byteArray = Encoding.ASCII.GetBytes("username:password");
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
client.PostAsync("http://IPaddress:port/F1/Details", yourcontent);