Post #550830
2026-03-06 11:41 UTC
@Edent@mastodon.social Where i've had to do similar in the past, I've tended to include a `Connection: close` along with a `content-length: 0` (it'd be before your flush())
<?php
header("Location: example.com");
header("Connection: close");
header("Content-length: 0");
flush();
sleep(100);
do_thing();
die();
But, that was a long time ago, so it might be that Curl has changed in the meantime
Replies (0)
No replies.