How to complete the challenge POST /api/heartbeat as Trace (501)
Send a normal POST request to /api/heartbeat, but add this header:
X-HTTP-Method-Override: TRACE
The server treats the request as TRACE and returns 501 Not Implemented.
Try it now
Browser HTTP clients cannot send TRACE methods. The HTTP client below is closed by default because it cannot complete this challenge from the browser; try it for yourself to see.
POST /api/heartbeat with TRACE override to trigger 501
Lessons Learned
X-HTTP-Method-Override: TRACEdemonstrates how unsupported effective methods are reported.501 Not Implementedshould be tied toTRACE, not the carrierPOST.- Browser clients often restrict
TRACE, so override support can make the test possible.
Suggested Experiments
- Compare direct
TRACE /api/heartbeatwith the override version if your client allows directTRACE. - Change the override header case or spacing and see how strict the parser is.