Fix cookie issue when sending POST message