+ localURI := strings.TrimSpace(MECMClusterIP) + ":" + strings.TrimSpace(APPLCMPort) + uri
+ if sslmode == "1" {
+ return "https://" + localURI
+ }
+ return "http://" + localURI
+}
+
+//Function to build the Get Requests for Application Package
+//Management and Application Life Cycle Management.
+func HttpGetRequestBuilder(uri string, body []byte) {
+
+ uri = httpEndPointBuider(uri)
+ fmt.Println("Request URL :\t" + uri)
+ request, err := http.NewRequest(http.MethodGet, uri, bytes.NewBuffer(body))
+ request.Header.Set(common.ContentType, common.ApplicationJson)
+ if err != nil {
+ log.Fatalln(err)
+ }
+ client := GetHttpClient()
+ response, err := client.Do(request)
+ if err != nil {
+ log.Fatalln(err)
+ }
+ defer response.Body.Close()