When you pass \r\n in a string, it's translated to 2 binary characters 13 and 10, corresponding to CR and LF.
When you pass them on the command line, they're treated as strings, i.e. 4 characters \, r, \, n.
BTW, you end an HTTP request with \r\n\r\n.