If you are failing to connect to a local CUPS server and seeing something like this:
400 Bad Request
You probably just need to add this to the main section of your /etc/cups/cupsd.conf file --
That tells the CUPS http server to ignore what host name the "remote" system is using for the CUPS server.
Don't forget to restart CUPS after you change the file.