DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:httpclient_request_send

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”)

See also

devel/event/httpclient_request_send.txt · Last modified: 2018-12-08 15:38 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki