Just install a real full-service httpd, and then disable khttpd using this in config.ini:

[hijack]
khttpd_port=0


Then you can script to your heart's content.

-ml