Solved

linking to tracking information from tracking code

Posted on 2012-03-09
1
230 Views
Last Modified: 2012-06-27
Is there any api or plugin I can integrate on my site so that if I have a tracking number, it will determine what shipping company it is from, and link to that site's tracking information?

Thanks a million
0
Comment
Question by:hibbsusan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 37705111
This might be doable, but I expect it would require something of a development effort.  The UPS tracking pages used to be GET-method requests - you could just plop a variable into a URL and read the page to get the tracking info.  Now that has been changed to a POST-method request, presumably in an effort to thwart attempts to find out where other people's packages are.  Logistics companies are understandably interested in keeping some of their information away from potentially bad actors.

I think if you ask the shipping companies for an API, you may be able to build this.  You would need to find the rules that differentiate the tracking numbers, then call the appropriate API to retrieve the shipping data.  The same script that calls the API would also format the shipping data for your use (maybe JSON or XML).  In computer science this is called a polymorphic adapter because a single script can adapt to many forms of external data and return a consistent response.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question