Live UPS calculation without UPS account - Possible?

Discussion in 'PHP' started by RichestGirl, Jan 15, 2009.

  1. #1
    Hi

    I need to PHP code program to have live UPS calculations for UPS shipping quotes
    Yes I know we can do this by writing UPS API code with UPS account.
    but I do not want to create UPS account.

    Is this possible without UPS account?

    Please Advise.
    Thanks in Advanced.
     
    RichestGirl, Jan 15, 2009 IP
  2. yoavmatchulsky

    yoavmatchulsky Member

    Messages:
    57
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #2
    if its possible for a user to view his package using a tracking code without registering, then you can "emulate" a user and parse the response.

    what to do:
    look at the <form> you use when press Track on http://wwwapps.ups.com/WebTracking/track (look at all the input it has and also on the js function it calls when pressed on).
    enter a valid package number and press Track
    look at the result and how it is displayed.

    now you can emulate the request using curl, fsockopen or file_get_content (if its a GET request)
     
    yoavmatchulsky, Jan 15, 2009 IP