osmand protocol decoder

ph 5 years ago

Hello
I hope everybody is well.

I am sending data to port 5055 but my data is not being decoded.

OUTPUT

2021-06-28 12:36:28 DEBUG: [6A05DF12: 5055 < 41.242.170.62] HEX: 504f5354202f3f69643d3530333837392674696d657374616d703d313036313135393732362d30302d30305430303a30303a30266c61743d35312e353037343031266c6f6e3d302e3132373830302673706565643d302e303030303030266c61743d35312e353037343031266c6f6e3d302e3132373830302673706565643d302e30303030303020485454502f312e310d0a486f73743a2036382e3138332e3131322e3132 0a
2021-06-28 12:36:31 DEBUG: [6A05DF12: 5055 < 41.242.170.62] HEX: 504f5354202f3f69643d3530333837392674696d657374616d703d313036313135393732362d30302d30305430303a30303a30266c61743d35312e353037343031266c6f6e3d302e3132373830302673706565643d302e303030303030266c61743d35312e353037343031266c6f6e3d302e3132373830302673706565643d302e30303030303020485454502f312e310d0a486f73743a2036382e3138332e3131322e31320a

HEX DECODED

POST /?id=503879&timestamp=1061159726-00-00T00:00:0&lat=51.507401&lon=0.127800&speed=0.000000&lat=51.507401&lon=0.127800&speed=0.000000 HTTP/1.1
Host: 69.184.122.121

I have tried changing the format around and still can't get it working. any suggestion will be highly appreciated

Anton Tananaev 5 years ago

Doesn't look like valid HTTP requests. That's probably the reason. Are you just sending data via TCP? You should just use some HTTP library.