Making a check between GET and POSt requests when adding body params