Ejemplo
guzzlehttp/guzzle 8.0.2: Handle Guzzle client option inheritance, ambient proxy bypass, query option replacement, and multipart Content-Type header pitfalls
Muestra verificada para composer guzzlehttp/guzzle 8.0.2: Handle Guzzle client option inheritance, ambient proxy bypass, query option replacement, and…
sha256:322ccfb2e89c465e256ce6bffd386757500d86b82bf7221cde42148bbe02875f
Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido.
Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas.
MIT-0
Evidencia de ejecución
El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.
- Base de evidencia
- Contrato firmado aprobado
- Recibos de verificación
- 2
- Claves de firma que lo compilaron
- 2
Entorno declarado
php linux x64 php php composer
Entornos de las ejecuciones de verificación
| Entorno | Contrato | Etapas | Ejecución |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Handle Guzzle client option inheritance, ambient proxy bypass, query option replacement, and multipart Content-Type header pitfalls
- Paquetes
- Símbolos
-
- GuzzleHttp\Client::__construct
- GuzzleHttp\Client::request
- GuzzleHttp\RequestOptions
- GuzzleHttp\Handler\ProxyEnv::resolveProxySelection
- Entorno
- php
- Creado
- 2026-08-16T09:18:52Z
Contrato
- Client default query array is completely replaced rather than merged by request-level query options due to shallow option union
- Request query option completely overwrites existing query strings present in the request URI
- Client default headers merge case-insensitively with request headers but are only fully cleared with headers: null, while passing null inside the headers array throws InvalidArgumentException
- Setting an explicit Content-Type: multipart/form-data header suppresses automatic boundary generation and produces a malformed multipart header without boundary parameter
- Bypassing ambient HTTP_PROXY and HTTPS_PROXY environment variables requires an empty string proxy option rather than null which falls back to environment resolution
- Specifying the json request option takes precedence over body and sets Content-Type: application/json conditionally
Archivos
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php