Test the PHP action API with a bad hostname

This revealed a problem in the forwarding a 'localhost' host header
out to external Web services, which makes the PHP action API rather
unhappy.