Before posting, we should set the corresponding headers.