Move POST resquest to common function.