---
id: post/yzhums-com/65525
type: post
title: "Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL"
summary: Validating URL security in Business Central AL code using the IsSecureHttpUrl method from codeunit 1299 Web Request Helper. This helps confirm whether external URLs are secure (HTTPS) before using them in customizations, APIs, or barcode generation services.
tier: community
language: en
tags:
  - url validation
  - https security
  - external services
  - al coding
  - codeunit
  - api integration
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:42:40.108Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 36e505d4e7e58b955ed6cf581b5e2050c4c446c7cfbcd395deb71507e33b142a
evidence:
  - kind: blog
    url: https://yzhums.com/65525/
    title: "Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL"
    date: "2025-07-02"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/65525/
    title: "Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL"
    date: "2025-07-02"
    commit: null
    t: null
    quote: 'In codeunit 1299 "Web Request Helper": procedure IsSecureHttpUrl(Url: Text)'
  - kind: blog
    url: https://yzhums.com/65525/
    title: "Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL"
    date: "2025-07-02"
    commit: null
    t: null
    quote: This method also checks if the URL is valid, so it is very helpful when calling external services or web pages in AL.
links:
  learn: []
  objects:
    - object/codeunit/1299
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "65525"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/65525/
published_at: "2025-07-02T00:49:06.000Z"
author: Yun Zhu
full_text: false
words: 301
quotes:
  - text: 'In codeunit 1299 "Web Request Helper": procedure IsSecureHttpUrl(Url: Text)'
    why_it_matters: Identifies the exact system method for validating URL security in AL code
  - text: This method also checks if the URL is valid, so it is very helpful when calling external services or web pages in AL.
    why_it_matters: "Demonstrates dual functionality: the method validates both security and URL validity for external integrations"
code_objects_mentioned:
  - codeunit Web Request Helper
systems:
  - integration
  - development
versions_mentioned: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2025/07/Snipaste_2025-07-02_09-40-58.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:18:26.291Z"
---

# Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL

[Read the post](https://yzhums.com/65525/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2025-07-02 · 301 words · tier community · reviewed (checked by Opus)

> Validating URL security in Business Central AL code using the IsSecureHttpUrl method from codeunit 1299 Web Request Helper. This helps confirm whether external URLs are secure (HTTPS) before using them in customizations, APIs, or barcode generation services.

## Key points

- Use codeunit 1299 Web Request Helper and its IsSecureHttpUrl procedure to validate URL security
- The method checks both HTTPS compliance and URL validity, making it useful when calling external services
- Can be implemented in table extensions like Customer to validate URLs before processing
- HTTPS encryption is critical for protecting sensitive data transmission in external integrations

## Quotes

- "In codeunit 1299 "Web Request Helper": procedure IsSecureHttpUrl(Url: Text)" (Identifies the exact system method for validating URL security in AL code)
- "This method also checks if the URL is valid, so it is very helpful when calling external services or web pages in AL." (Demonstrates dual functionality: the method validates both security and URL validity for external integrations)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [codeunit 1299 "Web Request Helper"](../../objects/codeunit/1299.md)

## Context

- Features: IsSecureHttpUrl procedure, URL validation, HTTPS checking, external API integration

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
