devel:event:httpclient_request_send
Table of Contents
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
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/httpclient_request_send.txt · Last modified: 2018-12-08 15:38 by torpedo