change redirect code for 307 to 302 to make go http client to redirect post