id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 16855,HTTP API No Follow Redirection,TheDeadMedic,dd32,"As highlighted in the following discussions, there's an issue when we '''don't''' want to follow redirects. On closer inspection, I believe only the cURL component is affected. http://wordpress.stackexchange.com/questions/11951/wp-remote-get-with-manual-redirect/11964#11964 http://groups.google.com/group/wp-hackers/browse_thread/thread/19dc7c7197f66754/9a60ad0b37ccaf1b?show_docid=9a60ad0b37ccaf1b&pli=1 Currently, {{{WP_Http_Curl}}} will throw a {{{WP_Error}}} if a redirection header was recieved, and the {{{redirection}}} argument is zero. ''Maximum redirects followed (0)'' The FOLLOWLOCATION option ''must'' be false, otherwise cURL treats the result as an error. {{{ if ( !$r['redirection'] ) curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, false ); }}} As I say, as far as I know only cURL component is affected. ",defect (bug),closed,normal,3.2,HTTP API,3.1,normal,fixed,,,