codesamplex

Exemplo

Prove that `http.Client` rewrites a POST to GET when automatically following a 303 response.

sha256:e5f8c640bc33cfca8cef511faf7729c3bfd091a0a0adb96e32e31e9e2bbac630

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Prove that `http.Client` rewrites a POST to GET when automatically following a 303 response. HOW
Pacotes
net/http go1.26.5
Ambiente
go
Criado
2026-08-16T13:07:56Z

O que costuma-se supor

A POST request that receives a 303 See Other keeps its method and body through automatic redirect following.

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação