created methods headers for sending data from server