Testing communications to various destinations. This is a simple diagnostic to determine whether your server can connect to common destinations.
For advanced "details" mode, add ?details=on to the URL.
Error ';
$goodMessage = 'GOOD: ';
echo 'Connecting to Zen Cart Support Server (http) ...
';
doCurlTest('http://www.zen-cart.com/testcurl.php');
echo 'Connecting to Zen Cart Support Server (https) ...
';
doCurlTest('https://www.zen-cart.com/testcurl.php');
echo 'Connecting to USPS (port 80)...
';
doCurlTest('http://production.shippingapis.com/shippingapi.dll');
if (isset($_GET['old']) && $_GET['old'] == '1') {
echo '2nd test, using old method: ';
dofsockTest('production.shippingapis.com', 80);
}
echo 'Connecting to USPS Test/Staging/Sandbox Server (port 80)...
';
doCurlTest('http://stg-production.shippingapis.com/ShippingApi.dll');
if (isset($_GET['old']) && $_GET['old'] == '1') {
echo '2nd test, using old method: ';
dofsockTest('stg-production.shippingapis.com', 80);
}
echo 'Connecting to UPS (port 80)...
';
dofsockTest('www.ups.com', 80);
echo 'Connecting to UPSXML (SSL) (wwwcie.ups.com) ...
';
doCurlTest('https://wwwcie.ups.com/ups.app/xml/Rate');
echo 'Connecting to UPSXML (SSL) (www.ups.com) ...
';
doCurlTest('https://www.ups.com/ups.app/xml/Rate');
echo 'Connecting to UPSXML (SSL) (onlinetools.ups.com) ...
';
doCurlTest('https://onlinetools.ups.com/ups.app/xml/Rate');
echo 'Connecting to FedEx (port 80)...
';
dofsockTest('fedex.com', 80);
echo 'Connecting to PayPal IPN (port 443)...
';
dofsockTest('www.paypal.com', 443);
doCurlTest('https://www.paypal.com/cgi-bin/webscr');
echo 'Connecting to PayPal IPN (port 443) Sandbox ...
';
dofsockTest('www.sandbox.paypal.com', 443);
doCurlTest('https://www.sandbox.paypal.com/cgi-bin/webscr');
// echo 'Connecting to PayPal IPN (port 443) Sandbox ...
';
// dofsockTest('ipnpb.paypal.com', 443);
// doCurlTest('https://ipnpb.paypal.com');
echo 'Connecting to PayPal Express/Pro Server ...
';
doCurlTest('https://api-3t.paypal.com/nvp');
echo 'Connecting to PayPal Express/Pro Sandbox ...
';
doCurlTest('https://api-3t.sandbox.paypal.com/nvp');
echo 'Connecting to PayPal Payflowpro Server ...
';
doCurlTest('https://payflowpro.paypal.com/transaction');
echo 'Connecting to AuthorizeNet Production Server ...
';
doCurlTest('https://secure.authorize.net/gateway/transact.dll');
echo 'Connecting to AuthorizeNet Developer/Sandbox Server ...
';
doCurlTest('https://test.authorize.net/gateway/transact.dll');
echo 'Connecting to First Data GGe4 server (SSL)...
';
doCurlTest('https://checkout.globalgatewaye4.firstdata.com/payment');
echo 'Connecting to LinkPointAPI server (port 1129)...
';
doCurlTest('https://secure.linkpt.net/LSGSXML:1129');
?>
Testing completed. See results above.