WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16855, comment 20


Ignore:
Timestamp:
03/20/2011 10:00:58 PM (9 years ago)
Author:
cogmios
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16855, comment 20

    initial v1  
    1 Maybe I missed something of the above but:
     1I understand the difference now:
    22
    331. you send a head request it returns "Response: HTTP/1.1 200 OK Date: Sun, 20 Mar 2011 20:49:41 GMT Server: Apache Cache-Control: no-cache Expires: Thu, 4 Jan 1990 10:00:01 GMT Last-Modified: Tue, Jan 27 2099 23:59:59 GMT Pragma: no-cache X-ATG-Version: ATGPlatform/7.2 [ DASLicense/0 DPSLicense/0 ] Set-Cookie: JSESSIONID=PNZORWDSL2JJHQE1GHPCKH4ATMY32JVN; path=/ Content-Length: 0 Connection: close Content-Type: text/html"
     
    12123. However ... when I do a direct get request with my test script I get: HTTP/1.1 302 Moved Temporarily Date: Sun, 20 Mar 2011 21:14:36 GMT Server: Apache Cache-Control: no-cache Expires: Thu, 4 Jan 1990 10:00:01 GMT Last-Modified: Tue, Jan 27 2099 23:59:59 GMT Pragma: no-cache X-ATG-Version: ATGPlatform/7.2 [ DASLicense/0 DPSLicense/0 ] Set-Cookie: JSESSIONID=TK21PGAJSFZPRQE1GHRSKH4ATMY32JVN; path=/ Location: https://login.techweb.com/cas/login?service=http%3A//www.informationweek.com/nopagefound.jhtml%3Bjsessionid%3DTK21PGAJSFZPRQE1GHRSKH4ATMY32JVN&gateway=true Connection: close Content-Type: text/html Vary: Accept-Encoding, User-Agent
    1313
    14 Which contains the correct forwarding URI (so will never jump in that part of not having no return value?
     14Which contains the correct forwarding URI (so will never jump in that part of not having no return value).
     15
     16It is in:
     17{{[
     18// The option doesn't work with safe mode or when open_basedir is set.
     19                // Disable HEAD when making HEAD requests.
     20                if ( !ini_get('safe_mode') && !ini_get('open_basedir') && 'HEAD' != $r['method'] )
     21                        {
     22                        //curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, true );
     23                        echo "ah!";
     24                        }
     25}}}
     26
     27If I comment that out all = ok , f.y.i. my PHP Info:
     28{{{
     29safe_mode       Off     Off
     30open_basedir    no value        no value
     31}}}
     32
     33I probably missed that line in the patching.
    1534
    1635
     
    2746
    2847
     48
     49
     50
     51