HOT Creating a Domain (How to send commands to the console i

Please post here if you have problems in using Wing FTP Server.
Post Reply
isppg
Posts: 7
Joined: Wed Jun 02, 2010 7:24 am

HOT Creating a Domain (How to send commands to the console i

Post by isppg »

Code: Select all

 Dim strUrl = http://127.0.0.1:6666/admin_webservice.html?admin=123&pass=123qwe&cmd= & Server.UrlEncode(adddomain(abc.com,21,990,80,443,22))

        Response.Redirect(strUrl)

but it can't work
isppg
Posts: 7
Joined: Wed Jun 02, 2010 7:24 am

Re: HOT Creating a Domain (How to send commands to the conso

Post by isppg »

can some one help me..thanks
isppg
Posts: 7
Joined: Wed Jun 02, 2010 7:24 am

Re: HOT Creating a Domain (How to send commands to the conso

Post by isppg »

Code: Select all

        Dim strUrl = "http://127.0.0.1:6666/admin_webservice.html?admin=123&pass=123qwe&cmd=" & Server.UrlEncode("deldomain abc.com")

        Response.Redirect(strUrl)
still can't work.............

Code: Select all

[ERROR RESULT] lua error in [string "deldomain+abc"]:1: '=' expected near '+'!
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: HOT Creating a Domain (How to send commands to the conso

Post by FTP »

No, "adddomain" or "deldomain" is a command in the admin console, so you can't call them in the webserivce.
The right way is calling the Lua API, like this:

c_AddDomain('abc.com','*',21,990,80,443,22)

c_DeleteDomain('abc.com')
Post Reply