---
title: "Codeunit 1297 Http Web Request Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/
type: codeunit
id: 1297
name: "Http Web Request Mgt."
app: "Base Application"
namespace: System.Integration
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1297 Http Web Request Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Integration |
| Versions | 17-28 |
| Source file | System/HttpWebRequestMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InvokeJSONRequest | (Text, var Text, var Text) | Boolean | public | 17-18 | Pending 16.0 | Security refactoring. Moved into COD 1140 as a local function based on a native HttpClient. Use OAuth20Setup.InvokeRequest(). |
| GetResponse | (var InStream, var DotNet HttpStatusCode, var DotNet NameValueCollection) | Boolean | public | 17-28 | - | - |
| GetResponseStream | (var InStream) | Boolean | public | 17-28 | - | - |
| ProcessFaultResponse | (Text) | Boolean | public | 17-28 | - | - |
| ProcessFaultXMLResponse | (Text, Text, Text, Text) | Boolean | public | 17-28 | - | - |
| ProcessFaultJsonResponse | (var Text) | Boolean | public | 17-28 | - | - |
| ParseFaultJsonResponse | (Text) | Text | public | 17-28 | - | - |
| CheckUrl | (Text) | Boolean | public | 17-28 | - | - |
| GetUrl | () | Text | public | 17-28 | - | - |
| GetUri | () | Text | public | 17-28 | - | - |
| GetMethod | () | Text | public | 17-28 | - | - |
| TryLoadXMLResponse | (InStream, var DotNet XmlDocument) | Boolean | public | 17-28 | - | - |
| SetTraceLogEnabled | (Boolean) | - | public | 17-28 | - | - |
| DisableUI | () | - | public | 17-28 | - | - |
| Initialize | (Text) | - | public | 17-28 | - | - |
| AddBodyAsText | (Text) | - | public | 17-28 | - | - |
| AddBodyAsAsciiText | (Text) | - | public | 17-28 | - | - |
| SetTimeout | (Integer) | - | public | 17-28 | - | - |
| SetMethod | (Text) | - | public | 17-28 | - | - |
| SetDecompresionMethod | (DotNet DecompressionMethods) | - | public | 17-28 | - | - |
| SetContentType | (Text) | - | public | 17-28 | - | - |
| SetReturnType | (Text) | - | public | 17-28 | - | - |
| SetProxy | (Text) | - | public | 17-28 | - | - |
| SetExpect | (Boolean) | - | public | 17-28 | - | - |
| SetContentLength | (BigInteger) | - | public | 17-28 | - | - |
| AddSecurityProtocolTls12 | () | - | public | 17-28 | - | - |
| AddHeader | (Text, Text) | - | public | 17-28 | - | - |
| AddBody | (Text) | - | public | 17-28 | - | - |
| AddBodyBlob | (var Codeunit Temp Blob) | - | public | 17-28 | - | - |
| AddBasicAuthentication | (Text, Text) | - | public | 17-27 | Pending 25.0 | Replaced by AddBasicAuthentication(BasicUserId: Text; BasicUserPassword: SecretText) |
| SetUserAgent | (Text) | - | public | 17-28 | - | - |
| SetCookie | (var DotNet Cookie) | - | public | 17-28 | - | - |
| GetCookie | (var DotNet Cookie) | - | public | 17-28 | - | - |
| HasCookie | () | Boolean | public | 17-28 | - | - |
| CreateInstream | (var InStream) | - | public | 17-28 | - | - |
| SendRequestAndReadTextResponse | (var Text, var Text, var Text, var DotNet HttpStatusCode, var DotNet NameValueCollection) | Boolean | public | 17-28 | - | - |
| SendRequestAndReadResponse | (var Codeunit Temp Blob, var Text, var Text, var DotNet HttpStatusCode, var DotNet NameValueCollection) | Boolean | public | 17-28 | - | - |
| ProcessFaultXMLResponse | (Text, Text, Text, Text, var DotNet HttpStatusCode, var DotNet NameValueCollection) | Boolean | public | 19-28 | - | - |
| AddBodyAsTextWithEncoding | (Text, DotNet Encoding) | - | internal | 19-28 | - | - |
| AddHeader | (Text, SecretText) | - | public | 25-28 | - | - |
| AddBasicAuthentication | (Text, SecretText) | - | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnOverrideUrl | (var Text) | 17-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
