Changes

Jump to navigation Jump to search
238 bytes added ,  15:06, 18 July 2023
==http:send-request==
 
{{Announce|Updated with Version 11:}} {{Code|csv}}, {{Code|json}}, {{Code|html}} and {{Code|text}} attributes added.
{| width='100%'
| '''Summary'''
|Sends an HTTP request and interprets the corresponding response:
* {{Code|$request}} contains the parameters of the HTTP an {{Code|<http:request such as HTTP />}} element with a {{Code|method }} attribute, an {{Code|href}} attribute with the target URI, and optional header and headersbody elements.* In addition The request is either sent to this it can also contain the URI of the {{Code|$href}} argument or (if empty) to which the request will be sent and URI supplied via the body of the HTTP method{{Code|href}} attribute.* If In addition to the URI is not given with attributes of the parameter official specification, {{Code|$hrefcsv}}, its value in {{Code|$requestjson}} is used instead.* The request body can also be supplied via the , {{Code|$bodieshtml}} parameter.* Certificate verification can be globally disabled via the and {{OptionCode|IGNORECERTtext}} optionattributes can be supplied to define how to convert the response body.
Notes:
* Both basic and digest authentication is supported.
* While the contents of the request can be supplied as child of the {{Code|http:body}} element, it is faster and safer to pass them on via the third argument.
* Certificate verification can be globally disabled via the {{Option|IGNORECERT}} option.
* For further information, please check out the [http://expath.org/spec/http-client EXPath] specification.
|- valign="top"
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu