HTTP POST and a strange redirection error

Hello,

We’re trying to setup an action that sends an http post to a url, like

test.com/deactivate

I’ve tested it with Postman and Paw and can confirm that under any other circumstance, the POST goes through successfully.

However when infusionsoft does it, we get a 301 redirection error, and absolutely no other information that tells us what’s going on.

Here’s the basic code:

public function deactivateUser()
{
$email = $_POST['Email'];
  if ($email) {
  $account = [[ do db stuff ]]
  if ($account) {
  return 'User deactivated';
  }
} else {
  return 'Email not found';
}

}

Generally this is most often do to TLS compatibility. We have worked around this with some by adding an http to https redirect in their .htaccess file on the server. Are you posting the https or no?