Trying to use native httpd to create in app web server, but the sample code on website does not work. help.
That was the opposite of what the poster asked about. The question was about creating a Web server using the Httpd plugin and not fetching resources with an Http client.
This is going to be too late for the OP, but for anyone hitting this in a search, make sure you are wrapping your startServer() call in a platform.ready() statement to ensure that Cordova has completed loading before you issue your request to startServer().