Closed Sergeant61 closed 4 years ago
Hello I found the solution.
request.setDataCallback(new DataCallback() { @Override public void onDataAvailable(DataEmitter emitter, ByteBufferList bb) { Utility.getInstance().log("PARSE ERROR: " + bb.get()); Utility.getInstance().log("PARSE ERROR: " + bb.readString()); } });
Hello, I installed an http server. I have a camera that sends data and it sends data in application/xml format. But request.body(). get(). it is not always null. Can you help me with this ?
My Post Request :
My code:
`server.post("/mod1", new HttpServerRequestCallback() { @SuppressLint("SetTextI18n") @Override public void onRequest(AsyncHttpServerRequest request, AsyncHttpServerResponse response) { if (mod == 0) { SimpleXmlPullApp simpleXmlPullApp = new SimpleXmlPullApp(); Map<String, String> map = null;