[wp-hackers] Possible bug with HTTP API using cookies

Dion Hulse (dd32) wordpress at dd32.id.au
Wed Aug 1 01:13:13 UTC 2012


Are you using the same versions on localhost and production?
I've fixed a few bugs related to Cookies and HTTP in trunk (and
there's more fixes on the way) - specifically around cookies with 0
values and session cookies (which sounds like what you're going to be
using..):

http://core.trac.wordpress.org/query?status=accepted&status=assigned&status=closed&status=new&status=reopened&status=reviewing&component=HTTP&milestone=3.5&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component&order=priority

On 31 July 2012 23:36, William P. Davis <will.davis at gmail.com> wrote:
> I've tried that before. When I pass the full $response[ 'cookies' ] array
> to wp_remote_post no cookies are passed at all. When I pass just the
> initial object in the $response[ 'cookies' ] array I get Catchable fatal
> error: Object of class WP_Http_Cookie could not be converted to string in
> /Applications/MAMP/htdocs/304/wp-includes/class-http.php on line 419.
>
> Will
>
> The best bet is something like this:
> $response = wp_remote_post(...);
> $response2 = wp_remote_post( ..... 'cookie' => $response['cookies'] ) );
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list