I need a PHP function which will return the contents on an Apple Order page – https://store.apple.com/1-800-MY-APPLE/WebObjects/OrderStatus after entering the Order ID and Zip/Post code. I.e. use CURL to simulate a user having entered the form details.
The site uses something similar to ASP’s viewstate mechanism for sessions so it is not quite straight-forward as a normal webform to screen scrape.
Example order number and zip code will be provided once a programmer has been selected.
Code must be standard PHP5, no non-standard libraries. It should essentially be a function like:
getAppleOrderStatus ($order_id, $zip) {…}
which returns the html of the resulting order details page.