With the triviality of setting up an HTTP daemon with
HTTP::Daemon, and talking to it with
HTTP::Request::Common, there's probably no reason to "invent" your own protocol. Eventually, you'll probably want parameter escaping, and length checking, and perhaps even encryption. Bing. All for free with HTTP.
Please don't try to invent TCP protocols without first understanding why existing protocols aren't precisely what you need, and without studying prior art.
-- Randal L. Schwartz, Perl hacker