cancel
Showing results for 
Search instead for 
Did you mean: 

Silent Post Empty Post

Hello, I just configure my URL for the Silent Post.

The call just work fine, but I can not get the post data.

I just do this:

 

$txt = '';

foreach ($_POST as $key => $value) {
	$txt .= $key.': '.$value." \n";
}

$q = "INSERT INTO auth_silent_posts SET
	`date` = NOW(),
	`txt`  = '".mysql_real_escape_string($txt)."'";

mysql_query($q);

 

I get the new record in my db, but the field txt is always empty.

Thanks for any help I can get.

 

Mauro

m_sassa
Member
1 ACCEPTED SOLUTION

Accepted Solutions

The silent post url must be a https, if not, the POST cames empty.

The chat support should know this, and help people and not say that they can help.-

View solution in original post

m_sassa
Member
2 REPLIES 2

The silent post url must be a https, if not, the POST cames empty.

The chat support should know this, and help people and not say that they can help.-

m_sassa
Member

This is an interesting situation. Authorize.Net has merchants using HTTP to successfully receive Silent Post requests. Also, having reviewed the Silent Post code in the past, I know it's very simple code that doesn't require HTTPS.

That said, if switching between HTTP and HTTPS appears to make a difference, I'd check network logs first to confirm that you're seeing POST attempts from the 64.94.118.* range, and if you are, start checking the web logs to see how the web server is responding to the requests.

While I don't see a scenario offhand where POST would be disabled on your server by default if HTTPS isn't enabled to secure the data, I can't rule that out either.

--
"Move fast and break things," out. "Move carefully and fix what you break," in.
Lilith
Administrator Administrator
Administrator