Support POST redirect for 307 and 308 responses