doPost and doGet in http request