HTTP Interfacing and ports

I don’t think this is possible, you can change the port the API uses, or you can use a different port for your custom server. (Beno’s got you covered here)

Probably. See PAC Web server for a web server written by nick_stephens - may have a lot of the work done that you are looking for.

If these are shorthand for Opto functions - there is no HTTP Put - just get and post.