More: after adding even more error catchers to the script: (This is Perl, BTW) It appears that the content being returned by PayPal is invalid. The response back is on the order of _protocol - HTTP/1.1
_content - INVALID
_rc - 200
_headers - connection - close
_headers - set-cookie - ARRAY(0x1b0e258)
_headers - date - Thu, 02 Aug 2018 17:27:39 GMT
_headers - vary - Accept-Encoding,User-Agent
_headers - client-peer - 173.0.82.66:443
_headers - client-ssl-cipher - ECDHE-RSA-AES128-SHA
_headers - client-ssl-cert-issuer - /C=US/O=DigiCert Inc/CN=DigiCert Global CA G2
_headers - client-date - Thu, 02 Aug 2018 17:27:39 GMT
_headers - content-type - text/html; charset=UTF-8
_headers - server - Apache
_headers - client-transfer-encoding - ARRAY(0x1448548)
_headers - client-ssl-socket-class - IO::Socket::SSL
_headers - client-response-num - 1
_headers - ::std_case - HASH(0x1922250)
_headers - x-frame-options - SAMEORIGIN
_headers - client-ssl-cert-subject - /C=US/ST=California/L=San Jose/O=PayPal, Inc./OU=PayPal Production/CN=ipnpb.sandbox.paypal.com
_msg - OK
_request - _method - POST
_request - _uri_canonical - https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
_request - _content - cmd=_notify-validate&
_request - _uri - https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
_request - _headers - HTTP::Headers=HASH(0x135ff90)
Content-Type: text/plain So, PayPal is returning invalid content to the IPN script?
... View more