What's possibly of note is that without the \n the request fails. It needs a new line terminator.
When trying to create a connector in Qlik though, I can't seem to get anything to work. Basically whatever I put as the request body, I get an 'unexpected end of input stream' error. I managed to get it to create by putting the test metric as a query parameter, but then this doesn't actually 'do' anything, we don't see anything POSTed to Prometheus like we do when we run the curl.