Please anyone guide me that how to consume API using Golang with user name and password?
This is the API address https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/ AirService if have to pass the following with request request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes("username" + ":" + "password"))); request.ContentType = "text/xml; encoding='utf-8'"; request.Method = "Post"; request.Headers.Add("SOAPAction", ""); request.Host = "twsprofiler.travelport.com"; I shall be very thankful to him. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/03cb406a-33c9-44ac-bb4f-a71674caf227n%40googlegroups.com.