Send a PUT request to a URL

http:put(STRING url
, STRING data) : ARRAY

http:put('https://status.sunsed.com', 'hi this is interesting')
#=> [
#=>     "body" => "",
#=>     "header" => [],
#=>     "info" => [
#=>         "url" => "https://status.sunsed.com/",
#=>         "content_type" => NULL,
#=>         "header_size" => 0,
#=>         "request_size" => 0,
#=>         "ssl_verify_result" => TRUE,
#=>         "redirect_count" => 0,
#=>         "total_time" => 0.066148,
#=>         "namelookup_time" => 0.004382,
#=>         "connect_time" => 0.015673,
#=>         "pretransfer_time" => 0.0,
#=>         "size_upload" => 0.0,
#=>         "size_download" => 0.0,
#=>         "speed_download" => 0.0,
#=>         "speed_upload" => 0.0,
#=>         "download_content_length" => -1.0,
#=>         "upload_content_length" => -1.0,
#=>         "redirect_time" => 0.0,
#=>         "redirect_url" => "",
#=>         "primary_ip" => "2607:f8b0:4007:800::2013",
#=>         "certinfo" => [],
#=>         "primary_port" => 443
#=>     ],
#=>     "http_status_code" => 0,
#=>     "ok?" => FALSE,
#=>     "size" => 47
#=> ]

Copyright ©2013-2022 SunSed®. All rights reserved.