DWebPro provides an API that enable you to control the behavior of the application with great precision.
This API is available through HTTP requests and includes:
-
Shutdown: /dwebpro/shutdown
-
Lock CD: /dwebpro/lockcd
-
Unlock CD: /dwebpro/unlockcd
-
Start: /dwebpro/start
The shutdown API begins the DWebPro shutdown procedure and requests
only the file parameter, which is the full
path of the file that DWebPro displays. The following is an example
of how use the shutdown API:
http://127.0.0.1:8080/dwebpro/shutdown?file=%23%23DWEBPRO_DOCUMENTROOT%23%23%5Cmyshutdown.htm
The lockcd and unlockcd APIs enable you to lock and unlock the driver in which the CD/DVD of DWebPro is running. Both the these APIs request two parameters:
-
bad– Identifies the full URL that DWebPro displays if the lockcd or unlockcd execution is not successful. -
good– Identifies the full URL that DWebPro displays if the lockcd or unlockcd execution is successful.
The following is an example of how use the lockcd API:
http://127.0.0.1:8080/dwebpro/lockcd?bad=http://127.0.0.1:8080/error_locking.htm&good=http://127.0.0.1:8080/locking_completed.htm
![]() |
Keep in mind that the URL should not contain spaces or carriage returns. |
The Start API enables you to start an external software application using a hyperlink. The following is an example of how use the start API:
http://127.0.0.1:8080/dwebpro/start?file=notepad¶ms=c%3A%5Cautoexec.bat
The file field identifies the path
to the executable while the params field
specifies the parameters to send to the software. DWebPro start the
external software using the ShellExecute Windows API.
![]() |
If you need to use the DWebPro constants, keep in mind that you must encode them otherwise their values will be never sent to the server. |


