This was a joke to poke fun at people who comment "unnecessary use of cat", but yeah, it's bad on many levels.
However, in many simple cases, it will produce a valid response, since http server implementations are often extremely lenient. But I'd never use it because curl is truly everywhere.