Make WordPress Core


Ignore:
Timestamp:
08/17/2013 01:19:04 AM (13 years ago)
Author:
dd32
Message:

WP_HTTP: Cookies: When following redirects, include the request cookies in the redirected requests. Fixes #24987

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/tests/http/base.php

    r25002 r25046  
    260260        }
    261261
     262        /**
     263         * Test HTTP Cookie handling
     264         *
     265         * @ticket 21182
     266         */
     267        function test_cookie_handling() {
     268                $url = 'http://api.wordpress.org/core/tests/1.0/redirection.php?cookie-test=1';
     269
     270                $res = wp_remote_get( $url );
     271                $this->assertEquals( 'PASS', wp_remote_retrieve_body( $res ) );
     272        }
    262273}
Note: See TracChangeset for help on using the changeset viewer.