Adding GET to the curl options after the session is handled and reversing the arguments in array_diff were the main issues