Add HEAD request method for HTTP Request Action

Created on 19 March 2025, 23 days ago

Problem/Motivation

I need to know if a URL exists. For example, if a live video feed for a meeting is available. There is no need to retrieve the response body in this instance. Using the HEAD request method satisfies this requirement. This is not currently a request option with the ECA action: ECA HELPER: HTTP REQUEST.

Proposed resolution

A potential solution is to add HEAD as a method in the buildConfigurationForm function in HttpRequest.php. I have added that and tested locally with success.

'head' => $this->t('HEAD'),

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada bdunphy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024