Updated postIPN method to use CURL.