- Log in to post comments
User bio
404 bio not found
Member since May 20, 2023
Posts:
Replies:
Congratulations @Ashok Kumar T 😊
- Log in to post comments
Hi,
You can also create a Generic Message request and receive a Generic Message response.
Set url = Endpointurl_"/"_Param1_"/"_Param2_"/"_Param3
Set httpResponse= ##class(EnsLib.HTTP.GenericMessage).%New()
Set HTTPrequest = ##class(EnsLib.HTTP.GenericMessage).%New()
Do HTTPrequest.HTTPHeaders.SetAt("application/x-www-form-urlencoded", "content-type")
Do HTTPrequest.HTTPHeaders.SetAt("GET","HttpRequest")
Do HTTPrequest.HTTPHeaders.SetAt(url, "URL")
Set tSC = ..OnMessage(HTTPrequest, .httpResponse)
Set StatusCode = $P(httpResponse.HTTPHeaders.GetAt("StatusLine")," ",2)
Thanks,
- Log in to post comments
Certifications & Credly badges:
Prasanth has no Certifications & Credly badges yet.
Followers:
Following:
Congratulations !!!