// Do like curl and browsers: turn POST to GET on 301, 302 and 303
if('POST' === $response->getRequest()->getMethod() || 303 === $status){ $info['http_method'] = 'HEAD' === $response->getRequest()->getMethod() ? 'HEAD' : 'GET'; $request->setMethod($info['http_method']); } }