Did you see the comments in your article pointing out how lines were missing from the bottom of the sketch?
Here is another more complete ESP example ...
Correct.
It is entirely up to you to make sure that the two sides of the http conversation agree on message formats and meanings, but otherwise you are using web traffic to connect tools on different platforms that know nothing about each other.
Some AI2 tutorials might help you ...