i tried hard coding \r\n into the string. I read online that the curl command sends data as ascii, so it wont interpret the \r\n as a CRLF. Thats when i thought of using the :crlf perlio approach i mentioned in the question.
Do not wait to strike when the iron is hot! Make it hot by striking - WB Yeats