for example the curl code:
curl "http://example.com" --data-binary $'abc\r\ndef' --compressed
how to translate it to Go code?
What I have try is:
body := []byte("abc\r\ndef")
req, _ := http.NewRequest("POST", "http://example.com", bytes.NewBuffer(body))
resp, _ := http.DefaultClient.Do(req)