Translations of this page?:

HTTPCLIENT_REQUEST_SEND

Description:
rewrite outgoing HTTP(s) requests
DefaultAction:
use URL and data as is.
Preventable:
yes
Added:
2009-03-13

This Event allows to modify the URL, query parameters, POST-data and HTTP-method for outgoing HTTP requests before sending the request (see sendRequest() in inc/HTTPClient.php).

The intention is to have plugins transparently add a signature or authentication tokens to a request.

Passed Data

  • $data['url'] - the URL to request.
  • $data['data'] - raw data for HTTP-POSTs
  • $data['method'] - the HTTP method (“POST”, “GET”, “HEAD” or “DELETE”)

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

See also

devel/event/httpclient_request_send.txt · Last modified: 2009/03/13 14:46 by 193.252.206.192
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate