[wp-trac] [WordPress Trac] #11557: HTTP Streams transport doesnt abide max redirection
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 28 03:44:47 UTC 2009
#11557: HTTP Streams transport doesnt abide max redirection
--------------------------+-------------------------------------------------
Reporter: dd32 | Owner: dd32
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: HTTP | Version: 2.9
Severity: normal | Keywords: has-patch needs-testing
--------------------------+-------------------------------------------------
Comment(by dd32):
> It (the 1) could be read as: The first redirect is max, so it won't be
done.
Another way to look at it, Like in my OP, Is that the max_redirections is
actually The maximum number of ''requests'' it will make. So 1 request,
and result is a 30x, Has hit the maximum limit count.
> Is there a documentation of the request() $args array members available?
Its in the file. If its not there, Then probably not. Look at
WP_HTTP::request() perhaps. But reading the code is the best method.
> what about setting the default value to 20?
Thats completely irrelivant to this ticket.
As a test, Try requesting http://tools.dd32.id.au/redirect/?rt=5 which
makes 5 redirects with the various transports. All of them except streams
will suceed in requesting the document. Increase {{{redirection}}} to 6
and all will suceed. Decrease {{{redirection}}} to 4 and all will fail.
You can use my Core Control plugin with the HTTP Access manager to disable
the transports in their preffered orders.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11557#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list