[wp-trac] [WordPress Trac] #11428: WP_Http_ExtHTTP response code testing

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 27 20:53:45 UTC 2010

#11428: WP_Http_ExtHTTP response code testing
 Reporter:  arena         |       Owner:  dd32     
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  3.0      
Component:  HTTP          |     Version:  2.9      
 Severity:  major         |    Keywords:  has-patch

Comment(by dd32):

 > maybe it should support http standards

 It does.

 Its up to the implementor to determine how they wish to return HTTP level
 error conditions. The WP_HTTP class returns a Response object describing
 the HTTP response, and a WP_Error on failure - Thats it.

 > what about only testing ($inforesponse_code? == '200') ?

 Will that prevent a result being returned with half-full data in the event
 of a network timeout during the recieve process?

Ticket URL: <http://core.trac.wordpress.org/ticket/11428#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list