Sample
Follow HTTP redirects in httpx using follow_redirects=True instead of requests allow_redirects keyword or default
sha256:b4d8fe726e66322dc540d90ece4e09aae79b130c4892ad53e3d5f1078b087456
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Follow HTTP redirects in httpx using follow_redirects=True instead of requests allow_redirects keyword or default HOW
- Packages
- httpx 0.28.1
- Environment
- python
- Created
- 2026-08-17T03:19:23Z
Contract
- httpx.Client(allow_redirects=True) raises TypeError because allow_redirects is not an accepted keyword argument
- httpx.Client() defaults to follow_redirects=False returning intermediate redirect response with empty history
- httpx.Client(follow_redirects=True) resolves multi-hop redirects to the destination response and populates response.history
- client.get(url, follow_redirects=False) provides per-request override to suppress redirect following
Files
- NOTES.md
- csx.json
- pyproject.toml
- requirements.txt
- test/contract.py
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9