Export to GitHub

phpquery - issue #44

XHR API for Zend_Http_Client


Posted on Sep 22, 2008 by Happy Wombat

Make a fake API for Zend_Http_Client which mimics XMLHttpRequest: http://en.wikipedia.org/wiki/XMLHttpRequest

Comment #1

Posted on Oct 20, 2008 by Happy Wombat

PECL HTTP extension can be used as alternative http backend. http://pecl.php.net/package/pecl_http

Comment #2

Posted on Oct 21, 2008 by Happy Wombat

Another one http://sourceforge.net/projects/snoopy/

Comment #3

Posted on Mar 29, 2009 by Happy Ox

Snoopy is rather dated. It may be wise to design this functionality to use drivers so that Zend_Http_Client, pecl_http, snoopy, or whatever HTTP client library you prefer can be used by simply writing an appropriate driver.

Comment #4

Posted on Mar 30, 2009 by Happy Wombat

What do you mean by "rather dated" ? One of the purpose of XHR API for HTTP client is ability to switch the client to any other which supports XHR API. I think this is what you've just proposed. Another benefit is API unification with JS.

Status: Accepted

Labels:
Type-Enhancement Priority-Medium Milestone-Release1.0 Component-phpQuery