[ic] UPS Shipping Hack - Mike! HELP!

Matthew Schick interchange-users@lists.akopia.com
Wed Jul 18 16:18:00 2001


On 18 Jul 2001 14:37:12 -0500, Jason Osborne wrote:
> Mike, List,
> 
> Goal: Design a globalsub that can be called during order processing to setup
> UPS to pick up the items ordered, print off a shipping label, and grab the
> tracking number. This globalsub will allow those people who do not meet UPS'
> 50+ package-a-day E-Commerce Solution program. It will allow for easy
> integration of shipping into the current system allowing the shipping
> department in an organization to be able to automate each part of the
> shipping process.
> 
> Solution: Send any information the shipping section of UPS.com needs to the
> iis.class file located on their servers. Do general error checking and pull
> off tracking number from site.
> 
> Problem: UPS.com requires a login and password to access the shipping part
> of the site. I hacked out a script that sends this information via
> Net::SSLeay, however, the site tries to send back a cookie to the "client".
> The globalsub needs to be able to anticipate and accept this cookie and keep
> it on file so that it can "trick" UPS.com into thinking it is a browser.
> 
> Code and current results are below.
<snip>

Have you looked into the UPS API?  You could do all of this without
having to 'trick' anything.....  If I remember correctly, all the
communication is done thru an XML pipe....

Just a suggestion.
Matt