---
id: object/codeunit/1297
type: object
title: Codeunit 1297 "Http Web Request Mgt."
summary: Codeunit 1297 "Http Web Request Mgt." in Base Application (System.Integration). 39 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC25, BC28, BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "30"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 4d55d783f86dc9d1b40be4dfd10beaba42a82a107861f567b80a1fc1c200eaa1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/HttpWebRequestMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/System/HttpWebRequestMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12194
object_type: codeunit
object_id: 1297
name: Http Web Request Mgt.
namespace: System.Integration
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "28"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 45
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 10
  implements: 0
---

# Codeunit 1297 "Http Web Request Mgt."

> Codeunit 1297 "Http Web Request Mgt." in Base Application (System.Integration). 39 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC25, BC28, BC30.

Base Application · System.Integration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/HttpWebRequestMgt.Codeunit.al) · facts from BC29

## Events published

- `OnOverrideUrl(var Url: Text)` (integration)

## Procedures

- `GetResponse(var ResponseInStream: InStream; var HttpStatusCode: DotNet HttpStatusCode; var ResponseHeaders: DotNet NameValueCollection): Boolean`
- `GetResponseStream(var ResponseInStream: InStream): Boolean`
- `ProcessFaultResponse(SupportInfo: Text)`
- `ProcessFaultXMLResponse(SupportInfo: Text; NodePath: Text; Prefix: Text; NameSpace: Text)`
- `ProcessFaultXMLResponse(SupportInfo: Text; NodePath: Text; Prefix: Text; NameSpace: Text; var HttpStatusCode: DotNet HttpStatusCode; var ResponseHeaders: DotNet NameValueCollection)`
- `ProcessFaultJsonResponse(var ResponseJson: Text)`
- `ParseFaultJsonResponse(ResponseJson: Text): Text`
- `CheckUrl(Url: Text)`
- `GetUrl(): Text`
- `GetUri(): Text`
- `GetMethod(): Text`
- `TryLoadXMLResponse(ResponseInputStream: InStream; var XmlDoc: DotNet XmlDocument)`
- `SetTraceLogEnabled(Enabled: Boolean)`
- `DisableUI()`
- `Initialize(URL: Text)`
- `AddBodyAsText(BodyText: Text)`
- `AddBodyAsAsciiText(BodyText: Text)`
- `AddBodyAsTextWithEncoding(BodyText: Text; Encoding: DotNet Encoding)` (internal)
- `SetTimeout(NewTimeout: Integer)`
- `SetMethod(Method: Text)`
- `SetDecompresionMethod(DecompressionMethod: DotNet DecompressionMethods)`
- `SetContentType(ContentType: Text)`
- `SetReturnType(ReturnType: Text)`
- `SetProxy(ProxyUrl: Text)`
- `SetExpect(expectValue: Boolean)`
- `SetContentLength(ContentLength: BigInteger)`
- `AddSecurityProtocolTls12()`
- `AddHeader(Key: Text; Value: Text)`
- `AddHeader(Key: Text; Value: SecretText)`
- `AddBody(BodyFilePath: Text)`
- `AddBodyBlob(var TempBlob: Codeunit "Temp Blob")`
- `AddBasicAuthentication(BasicUserId: Text; BasicUserPassword: SecretText)`
- `SetUserAgent(UserAgent: Text)`
- `SetCookie(var Cookie: DotNet Cookie)`
- `GetCookie(var Cookie: DotNet Cookie)`
- `HasCookie(): Boolean`
- `CreateInstream(var InStr: InStream)`
- `SendRequestAndReadTextResponse(var ResponseBody: Text; var ErrorMessage: Text; var ErrorDetails: Text; var HttpStatusCode: DotNet HttpStatusCode; var ResponseHeaders: DotNet NameValueCollection): Boolean`
- `SendRequestAndReadResponse(var TempBlob: Codeunit "Temp Blob"; var ErrorMessage: Text; var ErrorDetails: Text; var HttpStatusCode: DotNet HttpStatusCode; var ResponseHeaders: DotNet NameValueCollection): Boolean`

Plus 5 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5459 "JSON Management"](../codeunit/5459.md) (10 calls: `ParseFaultJsonResponse → GetJsonWebResponseError`, `ParseWebResponseError → GetValue`, `ParseWebResponseError → InitializeFromString`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (5 calls: `AddBodyBlob → CreateInStream`, `AddBodyBlob → HasValue`, `CreateInstream → CreateInStream`, …)
- [Codeunit 1299 "Web Request Helper"](../codeunit/1299.md) (4 calls: `GetResponse → GetWebResponse`, `GetResponseStream → GetWebResponse`, `ProcessFaultJsonResponse → GetWebResponseError`, …)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (2 calls: `AddSecurityProtocol → BitwiseAnd`, `AddSecurityProtocol → BitwiseOr`)
- [Codeunit 1292 "Trace"](../codeunit/1292.md) (1 call: `TraceLogStreamToTempFile → LogStreamToTempFile`)
- [Codeunit 419 "File Management"](../codeunit/419.md) (1 call: `AddBody → IsAllowedPath`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `Initialize → IsSaaS`)
- [Codeunit 6224 "XML DOM Management"](../codeunit/6224.md) (1 call: `TryLoadXMLResponse → LoadXMLDocumentFromInStream`)

## Called by

- [Codeunit 1294 "OCR Service Mgt."](../codeunit/1294.md) (29 calls: `RsoAddCookie → SetCookie`, `RsoAddHeaders → AddHeader`, `RsoGetRequestBinary → CreateInstream`, …)
- [Codeunit 1410 "Doc. Exch. Service Mgt."](../codeunit/1410.md) (24 calls: `CreateIncomingDocEntry → TryLoadXMLResponse`, `GetDocDispatchErrors → TryLoadXMLResponse`, `GetDocumentMetadata → TryLoadXMLResponse`, …)
- [Codeunit 9510 "Document Service Management"](../codeunit/9510.md) (16 calls: `DeleteDriveItem → SendRequestAndReadTextResponse`, `GetDefaultLocation → AddHeader`, `GetDefaultLocation → DisableUI`, …)
- [Codeunit 6154 "API Webhook Notification Send"](../codeunit/6154.md) (10 calls: `AddTokenToRequestHeader → AddHeader`, `SendRequest → AddBodyAsTextWithEncoding`, `SendRequest → AddHeader`, …)
- [Codeunit 2752 "Universal Print Graph Helper"](../codeunit/2752.md) (9 calls: `AddHeaders → AddHeader`, `AddHeaders → DisableUI`, `AddHeaders → Initialize`, …)
- [Codeunit 9033 "Invite External Accountant"](../codeunit/9033.md) (8 calls: `InvokeRequest → AddBodyAsText`, `InvokeRequest → AddHeader`, `InvokeRequest → DisableUI`, …)
- [Codeunit 1237 "Get Json Structure"](../codeunit/1237.md) (6 calls: `GenerateStructure → AddHeader`, `GenerateStructure → GetResponse`, `GenerateStructure → Initialize`, …)
- [Codeunit 1281 "Update Currency Exchange Rates"](../codeunit/1281.md) (5 calls: `ExecuteWebServiceRequest → DisableUI`, `ExecuteWebServiceRequest → GetResponse`, `ExecuteWebServiceRequest → Initialize`, …)
- [Codeunit 6710 "ODataUtility"](../codeunit/6710.md) (5 calls: `CreateMetadataWebRequest → AddHeader`, `CreateMetadataWebRequest → Initialize`, `CreateMetadataWebRequest → SetMethod`, …)
- [Codeunit 1738 "OData Initializer"](../codeunit/1738.md) (2 calls: `CallMetadataEndpoint → GetResponseStream`, `CallMetadataEndpoint → SetUserAgent`)

## Recent changes

- 2026-10-02 [#12194 Harden web request helpers: opt-in default credentials](../../changes/bcapps/12194.md) (main, BC30, breaking)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25, BC28, BC30

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Http Web Request Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
