remote-curl: accept empty line as terminator