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