xhr suppot for post, put, delete