|
|
|
|
|
<restRequest variable>.Send (Function) In french: <Variable restRequête>.Envoie Sends a REST request and waits for the server response. cMaRequete is httpRequest
cMaRequete.URL = "<adresse serveur>"
cMaReponse is httpResponse = cMaRequete.Send()
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
Info(cMaReponse.Content)
END
cMaRequete is httpRequest
cMaRequete.Method = httpGet
cMaRequete.URL = "http://<IP du serveur>/CDM/UpdateBandeauhaut/1"
cMaReponse is httpResponse = cMaRequete.Send()
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
IF cMaReponse.Content = True THEN
Info("Le site a bien été mis à jour.")
ELSE
Error(cMaReponse.Content)
END
END
Syntax
Synchronous syntax: waiting for response Hide the details
<REST response> = <REST request>.Sends()
<REST response>: restResponse variable Name of the restResponse variable containing the response received from the REST server. <REST request>: restResponse variable Name of the restRequest variable that contains the characteristics of the REST request to be sent to the server. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|