Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function
HTTP PUT request.
[result, status] = http_put(url) [result, status] = http_put(url, data) [result, status] = http_put(url, data, <opt_args>)
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"
This argument represent data sent by the request. Can be a scilab variable which will be converted into JSON format if possible or sent as a string.
This represents a sequence of statements
key1=value1, key2=value2, ...where
key2, ... can be one of the following:
This option determines whether Scilab verifies the authenticity of the peer's certificate. If
noneis 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.
followis false. Set
follow=%tto follow eventual redirections.
Username and password can be specified for the websites which required authentication.
The syntax is
This option determines the format of data sent. Only the JSON format is supported. Value can be "json" or "JSON".
Result is a string which contain the server answer or a scilab variable if the answer is in JSON format.
HTTP response code.
This function will perform an HTTP PUT request.
The proxy configuration is used if it's enabled in the Preferences under the rubric "Internet".
data.userId = 12; data.title = "A title"; data.body = "A body"; data.id = 1; result = http_put(http://jsonplaceholder.typicode.com/posts/1", data)
|Report an issue|
|<< http_post||Web Tools||http_upload >>|