Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
http_delete
HTTP DELETE request.
Syntax
[result, status] = http_delete(url) [result, status] = http_delete(url, <opt_args>)
Arguments
- url
A string containing the server address following by the optional port, the route of the request and query datas. syntax: "address:port/route?queryfield=querydata"
- <opt_args>
This represents a sequence of statements
key1=value1, key2=value2, ...
wherekey1
,key2
, ... can be one of the following:- cert
This option determines whether Scilab verifies the authenticity of the peer's certificate. If
none
is given, no verification is performed.Disabling verification of the certificate allows bad guys to man-in-the-middle the communication without you knowing it. Disabling verification makes the communication insecure. Just having encryption on a transfer is not enough as you cannot be sure that you are communicating with the correct end-point.- follow
By default,
follow
is false. Setfollow=%t
to follow eventual redirections.- auth
Username and password can be specified for the websites which required authentication.
The syntax is
auth="username:password"
- result
Result is a string which contains the server answer or a scilab variable if the answer is in JSON format.
- status
HTTP response code.
Description
This function will perform an HTTP DELETE request.
The proxy configuration is used if it's enabled in the Preferences under the rubric "Internet".
Examples
http_delete("http://jsonplaceholder.typicode.com/posts/1");
See also
- http_post — HTTP POST request.
- http_put — HTTP PUT request.
- http_patch — HTTP PATCH request.
- http_get — HTTP GET request.
- http_upload — HTTP POST or PUT request to upload file(s) on server.
- toJSON — Convert scilab variable to JSON.
- fromJSON — Convert JSON to scilab variable.
History
バージョン | 記述 |
6.1 | Function introduced. |
Report an issue | ||
<< fromJSON | Web Tools | http_get >> |