[wp-trac] [WordPress Trac] #16855: HTTP API No Follow Redirection

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 23 14:57:12 UTC 2011


#16855: HTTP API No Follow Redirection
--------------------------+------------------------------
 Reporter:  TheDeadMedic  |       Owner:  dd32
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by cogmios):

 Can we have a new action (so a single line added) :

 {{{
                 do_action( 'http_api_curl_info', $handle);
                 curl_close( $handle );
 }}}

 ?

 This would provide the url e.g. with http://su.pr/16IDwy:

 {{{
 Array
 (
     [url] => http://www.eurogamer.net/articles/digitalfoundry-red-dead-
 redemption-time-lapse
     [content_type] => text/html; charset=ISO-8859-1
     [http_code] => 200
     [header_size] => 879
     [request_size] => 384
     [filetime] => -1
     [ssl_verify_result] => 0
     [redirect_count] => 1
     [total_time] => 0.811
     [namelookup_time] => 0.015
     [connect_time] => 0.031
     [pretransfer_time] => 0.031
     [size_upload] => 0
     [size_download] => 0
     [speed_download] => 0
     [speed_upload] => 0
     [download_content_length] => 37778
     [upload_content_length] => 0
     [starttransfer_time] => 0.483
     [redirect_time] => 0.328
     [certinfo] => Array
         (
         )
 )
 }}}

 which is pretty handy.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16855#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list