Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

linking to tracking information from tracking code

Posted on 2012-03-09
1
Medium Priority
?
234 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
1 Comment
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

926 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