Table of Contents

CallHttpPost Procedure

Codeunit Web Wrapper

Performs a HTTP POST call. Use the function GetLastIsSuccessStatusCode() to know if server returned a response code of type success.

Overloads

Name Description
CallHttpPost(Text; Codeunit "QWETB Temp Blob"; Codeunit "QWETB Temp Blob"): Boolean Performs a HTTP POST call.
CallHttpPost(Text; Record "QWETB tTempBlob" temporary; Record "QWETB tTempBlob" temporary): Boolean Performs a HTTP POST call.

CallHttpPost(Text; Codeunit "QWETB Temp Blob"; Codeunit "QWETB Temp Blob") Procedure

Performs a HTTP POST call. Use the function GetLastIsSuccessStatusCode() to know if server returned a response code of type success.

Signature

CallHttpPost(Url: Text; TempBlobRequest: Codeunit "QWETB Temp Blob"; var TempBlobResponse: Codeunit "QWETB Temp Blob") : Boolean

Parameters

Url Text

The target URL.

TempBlobRequest Codeunit "QWETB Temp Blob"

The data to be sent as body content as a blob.

var TempBlobResponse Codeunit "QWETB Temp Blob"

The response data as a blob.

Returns

Boolean

true if the call succeeds and a response is received. If the call fails an error is thrown unless SetSilentError() is set, if SetSilentError() is set a fail returns false.

CallHttpPost(Text; Record "QWETB tTempBlob" temporary; Record "QWETB tTempBlob" temporary) Procedure

Performs a HTTP POST call. Use the function GetLastIsSuccessStatusCode() to know if server returned a response code of type success.

Deprecated

This procedure is deprecated and should not be used.

Reason: Use the overload that takes Codeunit "QWETB Temp Blob" instead. It offers better performance.
Deprecated since: 27.0

Signature

[Obsolete('Use the overload that takes Codeunit "QWETB Temp Blob" instead. It offers better performance.', '27.0')]
CallHttpPost(Url: Text; var TempBlobRequest: Record "QWETB tTempBlob" temporary; var TempBlobResponse: Record "QWETB tTempBlob" temporary) Result: Boolean

Parameters

Url Text

The target URL.

var TempBlobRequest Record "QWETB tTempBlob" temporary

The data to be sent as body content as a blob.

var TempBlobResponse Record "QWETB tTempBlob" temporary

The response data as a blob.

Returns

Boolean

true if the call succeeds and a response is received. If the call fails an error is thrown unless SetSilentError() is set, if SetSilentError() is set a fail returns false.

This documentation is generated from Smart Toolbox v27.1