curl -X GET "https://{fqdn}/admin/config" const response = await fetch ( `https://{fqdn}/admin/config` , {
method: 'GET'
});
const data = await response. json (); import requests
response = requests.request(
"GET" ,
"https:// {fqdn} /admin/config" ,
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://{fqdn}/admin/config" );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER , true );
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST , "GET" );
$response = curl_exec ($ch);
curl_close ($ch); package main
import (
" fmt "
" io "
" net/http "
)
func main () {
req, _ := http. NewRequest ( "GET" , "https://{fqdn}/admin/config" , nil )
resp, err := http.DefaultClient. Do (req)
if err != nil {
panic (err)
}
defer resp.Body. Close ()
data, _ := io. ReadAll (resp.Body)
fmt. Println ( string (data))
} HttpClient client = HttpClient. newHttpClient ();
HttpRequest request = HttpRequest. newBuilder ()
. uri (URI. create ( "https://{fqdn}/admin/config" ))
. method ( "GET" , HttpRequest.BodyPublishers. noBody ())
. build ();
HttpResponse< String > response = client. send (request, HttpResponse.BodyHandlers. ofString ());
System.out. println (response. body ()); require "net/http"
require "uri"
uri = URI ( "https://{fqdn}/admin/config" )
http = Net :: HTTP . new (uri. host , uri. port )
http. use_ssl = uri. scheme == "https"
request = Net :: HTTP :: Get . new (uri)
response = http. request (request)
puts response. body ⧉