codesamplex

示例

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.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执