[wp-trac] Re: [WordPress Trac] #4779: Proposal for HTTP POST and REQUEST API

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 2 07:37:52 GMT 2008


#4779: Proposal for HTTP POST and REQUEST API
-------------------------------------------+--------------------------------
 Reporter:  darkdragon                     |        Owner:  jacobsantos
     Type:  enhancement                    |       Status:  new        
 Priority:  normal                         |    Milestone:  2.7        
Component:  Optimization                   |      Version:             
 Severity:  normal                         |   Resolution:             
 Keywords:  has-patch tested dev-feedback  |  
-------------------------------------------+--------------------------------
Comment (by DD32):

 > How do I go about telling Apache that localhost == 127.0.0.1 ?

 I'm not sure, I think it may be a PHP thing, Specifically, I think when it
 see's localhost its not doing HTTP... or something weird.

 In the request classes it might be worth either:
  * If hostname == localhost, Connect to 127.0.0.1, send Host: header as
 localhost
  * Do an IP lookup, eg, request is for google.com - it then looks up the
 IP manually(using the PHP function) and connects to that ip, sending the
 host header as expected.

 number 1 is basically just number 2, but only applied to localhost..

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4779#comment:69>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list