Truncated http response

I am sending an http post and getting a response but the server.log is truncating the message. What is a good way to see the entire response?

Trying to post to this site and something is not working…

local request = http.post("http://sms2.cdyne.com/sms.svc/SimpleSMSsend", {"Content-Type": "application/x-www-form-urlencoded"}, "PhoneNumber=715xxxyyyy&Message=hello&LicenseKey=95sssss-dddd-fffc-gggg8-asdfasdfasdfc"); local response = request.sendsync(); server.log("Cdyne response: " + response.body);

This should get you going :slight_smile:

`const LINEBREAK = @"
";

function logByLine(data) {
local lines = split(data, LINEBREAK);
foreach(line in lines) {
server.log(line);
}
}

local request = http.post(“http://sms2.cdyne.com/sms.svc/SimpleSMSsend”, {“Content-Type”: “application/x-www-form-urlencoded”}, “PhoneNumber=715xxxyyyy&Message=hello&LicenseKey=95sssss-dddd-fffc-gggg8-asdfasdfasdfc”);
local response = request.sendsync();
logByLine(response.body);`

const LINEBREAK = @" ";

Are you trying to make constante /n or /r?

Yup - that’s all that line is doing.