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

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 23 16:47:50 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):

 Ok. then add them to the other transports to?

 Maybe my context first: how can i get the favicon of 'http://su.pr/16IDwy'
 ?

 Answer: I need the URL where it forwards to, to determine the base url

 1st possibility: put redirect to 0 and + write code to manually redirect
 and do manually all the stuff that among others curl does. Did not work in
 1/3 of the cases. This is where this ticket came in.

 So therefore my 2nd possibility: add additional to the existing
 "do_action_ref_array( 'http_api_curl', array(&$handle) ); " on extra call
 to provide the information. In that way I can grab the url and know where
 it forwards to. I think that is the purpose of that field that curl
 returns grin. Also in that way users of WordPress can write plugins to
 e.g. describe where a shortlink heads to before clicking it.

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


More information about the wp-trac mailing list