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

Please post here if you have problems in using Wing FTP Server.

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

Postby isppg » Wed Jun 02, 2010 3:50 pm

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

Postby isppg » Wed Jun 02, 2010 3:51 pm

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

Postby isppg » Wed Jun 02, 2010 4:04 pm

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 '+'!
isppg
 
posts 7
 
joined Wed Jun 02, 2010 7:24 am

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

Postby FTP » Thu Jun 03, 2010 3:06 am

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')
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest