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

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 22 10:17:35 GMT 2007


#4779: Proposal for HTTP POST and REQUEST API
--------------------------+-------------------------------------------------
 Reporter:  darkdragon    |        Owner:  anonymous
     Type:  enhancement   |       Status:  new      
 Priority:  normal        |    Milestone:  2.5      
Component:  Optimization  |      Version:           
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by darkdragon):

 '''Changes''':

  * Created {{{wp_remote_register_transport()}}} and
 {{{wp_remote_unregister_transport()}}} instead of using a custom Action
 hook. I might just wrap those two functions around the Action API, but
 needs references to object.
  * Finished four of the five http request methods (missing !cURL).
  * Added hooks for user agent changing, as well as setting the different
 time outs with filters.

 '''Missing''':

  * !cURL implementation (might be plugin material).
  * method to setup what each object can be used for, fopen for PHP 4 can
 only be used for reading and not writing. Might be useful to decide based
 on {{{$type}}} used.
  * Comprehensive Unit Tests (coming next).
  * Missing hooks for parsing headers and body after response is finished
 (figured some things are better left to the user of the functions, better
 to return raw, instead of mangling when I shouldn't be).

 [http://wordpress.pastebin.com/m72ab9b2 Found this] after writing the
 first prototype. I like mine better, but okay. The guy has some good stuff
 and I ported some of it over.

 Again, this is just a prototype.

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


More information about the wp-trac mailing list