write request headers