1
19.1 Legacy Series / Re: CP Endpoints for White List
« on: February 14, 2019, 09:11:16 pm »
Thank you so much!
That did it.
That did it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
{"errorMessage":"Error at /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php:700 - strtolower() expects parameter 1 to be string, array given (errno=2)","errorTitle":"An API exception occured"}
{"zone":{"allowedMACAddresses":{"00:11:22:33:44:55":{"value":"00:11:22:33:44:55","selected":1},"aa:bb:cc:dd:ee:ff":{"value":"aa:bb:cc:dd:ee:ff","selected":1}}}}
{"zone":{"allowedMACAddresses":"aa:bb:cc:dd:ee:ff"}}
require 'net/http'
require 'openssl'
require 'json'
uri = URI('https://10.15.1.227/api/captiveportal/service/searchtemplates')
request = Net::HTTP::Get.new(uri)
request.basic_auth '123', 'abc'
result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
http.request(request)
end
puts result.body
require 'net/http'
require 'openssl'
require 'json'
uri = URI('https://10.15.1.227/api/captiveportal/service/searchtemplates')
request = Net::HTTP::Get.new(uri)
request.basic_auth '123', 'abc'
result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true) do |http|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.request(request)
end
puts result.body
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed