We use cookies on this website to distinguish you from other users. We use this data to enhance your experience and for targeted advertising. By continuing to use this website you consent to our use of cookies. For more information, please see our Cookie Policy.


You can now try the API systems in a sandbox environment for free.Learn More

Web Server Settings (Windows)

Web Server Settings (Windows)
API Endpoint:
    http://ip_address:8880/api_link
Example Request Parameters:
    ftp_messages: Hello FTP World!
    hidden_segments: _vti_bin, web.config, .htaccess
    dynamic_compression: true
    static_compression: true
    compress_file_size_status: true
    compress_file_size: 2700
    cache_directory: /cache
    per_application_pool_status: true
    per_application_pool: 100
      
      	curl --location --request POST 'http://dev.fpanel.net:8880/api' \
--header 'Content-Type: application/json' \
--header 'Token;' \
--data-raw '{
  "api": {
    "process": "system/webserver/webserver-settings",
    "data": {
      "ftp_messages": "exe",
      "hidden_segments": "exe",
      "dynamic_compression": "exe",
      "static_compression": "exe",
      "compress_file_size_status": "exe",
      "compress_file_size": "exe",
      "cache_directory": "exe",
      "per_application_pool_status": "exe",
      "per_application_pool": "exe",
      "server_name": "win2008-dev.fpanel.net"
    }
  }
}'
        
      
      
	  	<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://dev.fpanel.net:8880/api',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "api": {
    "process": "system/webserver/webserver-settings",
    "data": {
      "ftp_messages": "exe",
      "hidden_segments": "exe",
      "dynamic_compression": "exe",
      "static_compression": "exe",
      "compress_file_size_status": "exe",
      "compress_file_size": "exe",
      "cache_directory": "exe",
      "per_application_pool_status": "exe",
      "per_application_pool": "exe",
      "server_name": "win2008-dev.fpanel.net"
    }
  }
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Token: '
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

      	
      
      
      	import http.client
import json

conn = http.client.HTTPSConnection("dev.fpanel.net", 8880)
payload = json.dumps({
  "api": {
    "process": "system/webserver/webserver-settings",
    "data": {
      "ftp_messages": "exe",
      "hidden_segments": "exe",
      "dynamic_compression": "exe",
      "static_compression": "exe",
      "compress_file_size_status": "exe",
      "compress_file_size": "exe",
      "cache_directory": "exe",
      "per_application_pool_status": "exe",
      "per_application_pool": "exe",
      "server_name": "win2008-dev.fpanel.net"
    }
  }
})
headers = {
  'Content-Type': 'application/json',
  'Token': ''
}
conn.request("POST", "/api", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
        
      
      
      	var http = require('follow-redirects').http;
var fs = require('fs');

var options = {
  'method': 'POST',
  'hostname': 'dev.fpanel.net',
  'port': 8880,
  'path': '/api',
  'headers': {
    'Content-Type': 'application/json',
    'Token': ''
  },
  'maxRedirects': 20
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

var postData = JSON.stringify({
  "api": {
    "process": "system/webserver/webserver-settings",
    "data": {
      "ftp_messages": "exe",
      "hidden_segments": "exe",
      "dynamic_compression": "exe",
      "static_compression": "exe",
      "compress_file_size_status": "exe",
      "compress_file_size": "exe",
      "cache_directory": "exe",
      "per_application_pool_status": "exe",
      "per_application_pool": "exe",
      "server_name": "win2008-dev.fpanel.net"
    }
  }
});

req.write(postData);

req.end();
      	
      
      
      	package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "http://dev.fpanel.net:8880/api"
  method := "POST"

  payload := strings.NewReader(`{
  "api": {
    "process": "system/webserver/webserver-settings",
    "data": {
      "ftp_messages": "exe",
      "hidden_segments": "exe",
      "dynamic_compression": "exe",
      "static_compression": "exe",
      "compress_file_size_status": "exe",
      "compress_file_size": "exe",
      "cache_directory": "exe",
      "per_application_pool_status": "exe",
      "per_application_pool": "exe",
      "server_name": "win2008-dev.fpanel.net"
    }
  }
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Token", "")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
		
      
      
      	var client = new RestClient("http://dev.fpanel.net:8880/api");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Token", "");
var body = @"{" + "\n" +
@"  ""api"": {" + "\n" +
@"    ""process"": ""system/webserver/webserver-settings""," + "\n" +
@"    ""data"": {" + "\n" +
@"      ""ftp_messages"": ""exe""," + "\n" +
@"      ""hidden_segments"": ""exe""," + "\n" +
@"      ""dynamic_compression"": ""exe""," + "\n" +
@"      ""static_compression"": ""exe""," + "\n" +
@"      ""compress_file_size_status"": ""exe""," + "\n" +
@"      ""compress_file_size"": ""exe""," + "\n" +
@"      ""cache_directory"": ""exe""," + "\n" +
@"      ""per_application_pool_status"": ""exe""," + "\n" +
@"      ""per_application_pool"": ""exe""," + "\n" +
@"      ""server_name"": ""win2008-dev.fpanel.net""" + "\n" +
@"    }" + "\n" +
@"  }" + "\n" +
@"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
      	
      
      	
      	{
    "api": {
        "process": "system/webserver/webserver-settings",
        "data": {
            "ftp_messages":"Hello FTP World!",
            "hidden_segments":"_vti_bin, web.config, .htaccess",
            "dynamic_compression":"true",
            "static_compression":"true",
            "compress_file_size_status":"true",
            "compress_file_size":"2700",
            "cache_directory":"/cache",
            "per_application_pool_status":"true",
            "per_application_pool":"100"
        }
    }
}
		
      
      	
      	<?xml version="1.0" encoding="UTF-8" ?>
    <api>
        <process>system/webserver/webserver-settings</process>
        <data>
            <ftp_messages>Hello FTP World!</ftp_messages>
            <hidden_segments>_vti_bin, web.config, .htaccess</hidden_segments>
            <dynamic_compression>true</dynamic_compression>
            <static_compression>true</static_compression>
            <compress_file_size_status>true</compress_file_size_status>
            <compress_file_size>2700</compress_file_size>
            <cache_directory>/cache</cache_directory>
            <per_application_pool_status>true</per_application_pool_status>
            <per_application_pool>100</per_application_pool>
        </data>
    </api>
        
	  
      	
      	{
    "result":{
        "status":1,
        "message":"Operation completed successful"
    }
}
		
	  

We use cookies on this website to distinguish you from other users. We use this data to enhance your experience and for targeted advertising. By continuing to use this website you consent to our use of cookies. For more information, please see our Cookie Policy.