About bitrix-http-client
A HttpClient skill for Bitrix developers, covering HTTP requests, configuration, and security. It highlights explicit timeouts and streaming large responses to files.
Key features
- 01Send GET, POST, and JSON requests
- 02Handle multipart and async requests
- 03Configure defaults and logging
- 04Check for SSRF risks
- 05Download large responses to files
Use cases
- 01Make requests through PSR-18
- 02Handle user-provided URLs safely
- 03Download large response bodies
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bxmaximum/ bitrix-framework-skills --skill bitrix-http-clientAfter installing, type/bitrix-http-clientin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
rules/config-security.mdgeoip.mdrequests.mdDetails
From the project READMEHttpClient
Baseline: main 23.0+ · Verified: main 26.800.0
| Task | Read |
|---|---|
| GET/POST/JSON/download, PSR-18 requests, multipart, async | rules/requests.md |
Options, global defaults, logging, SSRF, CHTTP replacements | rules/config-security.md |
| Country/city/time zone by IP | rules/geoip.md |
Invariants
- Only
Bitrix\Main\Web\HttpClient;CHTTPand rawcurl_*/file_get_contents($url)are compat only. - Set
socketTimeoutandstreamTimeoutexplicitly: defaults are 30 s and 60 s. - URLs from users, webhooks or imports:
'privateIp' => false(the defaulttrueallows internal addresses). - Check the status before decoding; legacy calls return
falseon transport errors (getError()), PSR-18 throwsClientException. - Stream large bodies to a file (
download()), don't hold them in memory.
Comments
Markdown supported