0

I'm working on Apple MDM, when a device contacts my server and I dump the request, I can see this (among other things):

 _contentType: 'application/x-apple-aspen-mdm-checkin',
  body: <Buffer 03 04 05 06 07 ...>,

I am using restify and restify bodyParser()

I have obfuscated the actual hex. Now, when I convert the hex to ascii I can see this body string is the very beginning of a PLIST, but not the whole PLIST.

It looks like this:

<?xml version="1.0" encoding="UTF-8"?>?<!DOCTYPE pl

How can I access all of the data, is it in a buffer or something? I am new to nodeJS, so I don't really know how to go about accessing it.

user602525
  • 3,126
  • 4
  • 25
  • 40

1 Answers1

1

When you look at data on the console, what you're seeing is some interpretation that your debugger has chosen to use. For large items, this is often a truncated representation.

body.toString()

will do a full conversion for you.

Dancrumb
  • 26,597
  • 10
  • 74
  • 130