Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions upsTrack.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getTrack($trackingNumber) {
if(!$this->isOnline())
throw new Exception("The UPS service seems to be down with HTTP/1.1 $value");

$ch = curl_init("https://www.ups.com/ups.app/xml/Track");
$ch = curl_init("https://onlinetools.ups.com/ups.app/xml/Track");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_TIMEOUT, 15);
Expand Down Expand Up @@ -99,7 +99,7 @@ function getXML($trackingNumber) {

function isOnline() {

$ch = curl_init("https://www.ups.com/ups.app/xml/Track");
$ch = curl_init("https://onlinetools.ups.com/ups.app/xml/Track");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch,CURLOPT_TIMEOUT, 15);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
Expand Down