reciving binary data in http POST

Lukket Lagt ut 5 år siden Betales ved levering
Lukket Betales ved levering

i have a device (time attendance) that send POST data to my server every 10 seconds. ( i cant control or change the way it send data)

so in my server in php file i run print_r($_POST) and it is empty, i can see the data only when i run this

$content = file_get_contents('php://input');

var_dump($content); //or i can use print_r($content);

i save those to a file and result are some json and BINARY DATA (CHECK atachment)

but in php i cant get the binary , coz i see strange characters, few developer tried and they were not able to get it in php

so is there a way to get that binary and convert to ascii or whatever u like and then save to a file or send to php or whatever,

so i just want to recive binary and decode so i can see what info is there

p.s HTTP request Content-type is: [Content-Type] => application/octet-stream, application/octet-stream

Apache Linux PHP Python

Prosjekt-ID: #17788263

Om prosjektet

5 bud Eksternt prosjekt Aktiv 5 år siden

5 frilansere byr i gjennomsnitt $88 for denne jobben

deepthi2889

Hi, I am a Full stack developer in Microsoft technologies.  My area of expertise is web application development (asp.Net web forms, MVC, classic ASP), web services (SOAP & RESTFul), MySql & Sql Server as back end (th Mer

$111 USD på 1 dag
(7 Omtaler)
4.6
Priyanshu1

Hi Sorry for overbidding, but since you mentioned a few guys have already tried and you seem to be knowledgeable as well in php, that means it might be a little more complicated. But I will fix it may be with a little Mer

$100 USD på 2 dager
(5 Omtaler)
4.0
CanadianCoder

Hello, I feel like I can help you get this work done. It should only take a few hours at most. I have a lot of relevant experience which would make this quick and painless. Feel free to ask me any questions before maki Mer

$20 USD på 0 dager
(20 Omtaler)
3.9
frogsinnbo

I have done similar IOT work. I can solve this problem easily to your satisfaction. Relevant Skills and Experience Unix, server side, highly scalable systems C,c++,php, VC++,java

$166 USD på 1 dag
(0 Omtaler)
0.0