Traccar Client reponse

jrischma7 years ago

Hi , traccar client need response from the server?
thanks!

Anton Tananaev7 years ago

Yes, Traccar Client expects standard OK HTTP response from server.

jrischma7 years ago

Thanks Anton, traccar client send always the same timestamp, i think that is my problem on response, i send this:

String response = "HTTP/1.1 200 OK\r\n" + "Content-Type: text/html\r\n" + "Content-Length: ";

by socket

is wrong?

Anton Tananaev7 years ago

It doesn't seem like a valid HTTP response. Why is "Content-Length" empty? I would recommend to check what official Traccar server responds with.

jrischma7 years ago

where can i check the official Traccar server response?

i cant found, sorry, really i search ...

Anton Tananaev7 years ago

You can find it in Traccar logs in HEX format.

jrischma7 years ago

thanks again Anton, but on this link

https://github.com/tananaev/traccar/tree/master/src/org/traccar/protocol

what is traccar client?

Anton Tananaev7 years ago

Traccar Client uses OsmAnd protocol, but I don't think you will find anything useful in that code for your particular question.

jrischma7 years ago

thanks, i try, and try, and try and NOT work XD

Anton Tananaev7 years ago

That's why I said you should check actual response from Traccar server.