Page 1 of 1

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

Posted: Wed Jun 02, 2010 3:50 pm
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

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

Posted: Wed Jun 02, 2010 3:51 pm
by isppg
can some one help me..thanks

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

Posted: Wed Jun 02, 2010 4:04 pm
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 '+'!

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

Posted: Thu Jun 03, 2010 3:06 am
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')