Turnstile verify 404

I can’t seem to get turnstile working. I followed the guide for swapping out recaptcha and it appears. But I just can’t verify them. Cloudflare returns 404? Am I missing something?

$responseurl = “https://challenges.cloudflare.com/turnstile/v0/siteverify?secret=“.$secretKey.”&response=“.$captcha.”&remoteip=”.$ip;

$response = file_get_contents($responseurl);

I’ve verified it gets filled out correctly afaik

So it looks like it wants a post. So dumb. I wasted hours debugging. Why require a post?

Because that’s how HTTP works - you’re sending a body of data.

https://www.rfc-editor.org/rfc/rfc7231#section-4.3.3

It’s also documented here:

2 Likes

Still dumb. Get parameters exist. Google accepted it fine. I gave up, it’s not as drop in as I thought swapping many out.

https://www.rfc-editor.org/rfc/rfc3986

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.