Reply
Member
Posts: 2
Registered: ‎01-03-2014
Accepted Solution

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


Accepted Solutions
Solution
Accepted by topic author m_sassa
‎08-21-2015 01:58 AM
Member
Posts: 2
Registered: ‎01-03-2014

Re: Silent Post Empty Post

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


All Replies
Solution
Accepted by topic author m_sassa
‎08-21-2015 01:58 AM
Member
Posts: 2
Registered: ‎01-03-2014

Re: Silent Post Empty Post

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.-

Posts: 321
Topics: 5
Kudos: 37
Blog Posts: 5
Ideas: 0
Solutions: 26
Registered: ‎11-09-2011

Re: Silent Post Empty Post

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.