In theory, the server gives only how many pixels should be in the bar, based on internal calculations.
The HP bars are sizeable, the server can't know how many pixels need to be filled in. The server gives either the percent or the actual HP amount and lets the client's UI system figure out what to show.

There's really no other (intelligent) way to do it.