Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPS Tracking
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00561038
Message ID:
00561273
Vues:
25
You can do this pretty easily with some HTML screen scraping as well. You can use the URL Terry provided and just peel out the resulting confirmation code:
o = CREATE("wwHTTP")
lcHTML = o.HTTPGet("tracking url")

lcConfirm = EXTRACT(lcHTML,"delimiterstring","delimiterstring")
I don't have a UPS shipping id handy otherwise I would have put this code together - I actually have an app that could use this too.

I kinda agree with Terry too though - it's not a bad idea to actually show the UPS page in your app with the data in it. That relieves your app from waiting for the response from UPS.

+++ Rick ---

>Hello all,
>
>Anybody using VFP to check tracking of packages shipped by UPS. They seem to offer several tools to do so and I am wondering what sucess others have had with this. It seems you can send a CGI request to their website then parse the result, prep an email and parse the return email, or send a CSV file and get one returned. They also have some API samples, but I didn't see any VFP examples and it looks more cumbersome than the other methods.
>
>Thanks in advance
>
>Bob
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform