[wp-hackers] wp_remote_get() fails but wget works?

Andrew Nacin wp at andrewnacin.com
Mon Feb 4 14:38:40 UTC 2013


On Mon, Feb 4, 2013 at 8:41 AM, Mike Walsh <mpwalsh8 at gmail.com> wrote:

> [0] => Too many redirects.


By default, wget follows up to 20 redirects, which the manual admits "is
usually far more than necessary". wp_remote_get() follows five.

You can change this with 'redirection' => 20.


More information about the wp-hackers mailing list