bitrix-http-client

Standardize external HTTP requests in Bitrix projects with configurable options.

33|3|Updated Jun 5, 2025
One-click install
npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-http-client
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bitrix-http-client
Source: https://github.com/bxmaximum/bitrix_ai_challenge/tree/main/.agents/skills/bitrix-http-client
Command: npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-http-client

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bitrix HttpClient is used to perform external HTTP requests in both legacy and PSR-18 modes. It centralizes configuration, error handling, and security controls across Bitrix projects.

Core Features & Use Cases

  • Global configuration via local/.settings.php http_client_options
  • Legacy mode GET/POST/Download and PSR-18 request/response with async support
  • OnHttpClientBuildRequest event customization, logging, and proxy support
  • SSRF/SSL safety checks and per-request headers and timeouts

Quick Start

Configure http_client_options in local/.settings.php and begin using HttpClient with legacy get/post or PSR-18 sendRequest in your Bitrix project.

Frequently Asked Questions about bitrix-http-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Bitrix HttpClient usage for secure external API requests?

You can standardize Bitrix HttpClient usage by configuring http_client_options in local/.settings.php, which centralizes timeouts, redirects, proxies, and SSRF/SSL safety checks for external API requests.

Can I use PSR-18 asynchronous requests with the Bitrix HttpClient?

Yes, Bitrix HttpClient supports PSR-18 request and response handling with asynchronous support, allowing you to execute webhooks and external API calls alongside legacy GET/POST download modes.

Does this Bitrix HTTP client approach provide protection against SSRF and SSL vulnerabilities?

This approach provides SSRF and SSL safety checks through configurable http_client_options, ensuring secure external communications across both legacy and PSR-18 modes in Bitrix projects.

What is the best way to configure global HTTP timeouts and proxy settings in Bitrix?

The best way to configure global HTTP timeouts and proxy settings in Bitrix is by defining them within the http_client_options array in your local/.settings.php file.

How do I customize HTTP request headers and logging per request in Bitrix?

You customize per-request headers, timeouts, and logging by using the OnHttpClientBuildRequest event for dynamic modification and structured error handling during external HTTP communications.