サンプル
Prove that `http.Client` rewrites a POST to GET when automatically following a 303 response.
sha256:e5f8c640bc33cfca8cef511faf7729c3bfd091a0a0adb96e32e31e9e2bbac630
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Prove that `http.Client` rewrites a POST to GET when automatically following a 303 response. HOW
- パッケージ
- net/http go1.26.5
- 環境
- go
- 作成日
- 2026-08-16T13:07:56Z
よくある思い込み
A POST request that receives a 303 See Other keeps its method and body through automatic redirect following.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- A default client must follow `StatusSeeOther` (`303`) by issuing the next request as `GET`, not as the original method.
- The follow-up request body from that redirect must be empty.
ファイル
- NOTES.md
- csx.json
- go.mod
- redirect_test.go
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-16 · ed25519:d91480838ac982c9