It's unclear what you're trying to do any why you need to redirect something. You should probably explain in more details your situation.
i have a hardware vt-100 which protocol is startek
i want the first data to be sent to my custom server (xyz.com/api)
after that im trying to redirect the received data to specific traccar server as i have multiple traccar server
is there any option to manage data first and then send data afterwards??
Startek is not HTTP-based protocol. How do you expect to receive that data on your server?
sorry if im not clear
i tried to log the data received in my server...
the log generated the below response :
<<sof>>
"&&:134,9761647835,000,0,,230331174542,A,27.687901,85.329856,5,25.5,0,336,1070,42310,429|1|277C|00002BA3,18,003C,00,00,04B6|01A3|0000|0000,1,45" 400 166 "-" "-
<<eof>>
i tried to do POST request to
"xyz.com:5222/api?&&:134,9761647835,000,0,,230331174542,A,27.687901,85.329856,5,25.5,0,336,1070,42310,429|1|277C|00002BA3,18,003C,00,00,04B6|01A3|0000|0000,1,45"
im guessing the packet didnt transferred successfully.
what my question really is....
i have two traccar server (xyz.com) and (abc.com)
what im doing currently is
im sending an sms directly to phone number of (+91,xxxxxx also my identifier) to (xyz.com) using hardware specified port and the data gets displayed. similarly it works for abc.com as well.
but what we are planning is
we have another php based project which we are trying to make as following
we are only trying here to balance load ..
is this possible ?? or are we just wasting time
You can forward the data to Traccar. Just make sure you forward it exactly the same way you received it. You seem to be confused about HTTP vs TCP here. You keep trying to do some HTTP requests when the protocol should be pure TCP.
so if i have a server called : xyz.com/api
and if i set hardware (identifier 123456) server url to xyz.com/api
so my device (identifier : 123456) is to be linked to trcaarserver.com
can i resend the received data from xyz.com/api to trcaarserver.com??
if so can you just give gist about it??
It seems like you're still mentioning some URLs, which are only applicable to HTTP. How is it related to Startek protocol?
sorry but what im trying to say is...
at first the hardware will send data to our php server
and the php server will redirect the received data to traccar server
is it possible what we are trying to do??
Yes, it should be possible. Why not?
does the code below only works for osmand device??
Are there any way to receive data from hardware like VT-100(startek) devices directly to our custom domain and then to redirect those data traccar server??