DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

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