Siam Active Member Licensed User Longtime User Oct 16, 2019 #1 Hello, i try to communicate with my TV, I have one Software (Upnp Request Sender) with i can send the command to adjust the TV Volume this is working so far Now i have convert this to B4J with httputils2 i send The exactly command but this don't work. The only diverrence is that the Header Information about User-Agent / Connection Keep Alive / Accept encoding will be Send by B4j. With the other software this header is not send. So my guess is that my TV don't like this Header Information. Is it Possible to Remove This header Information? with request.RemoveHeaders("User-Agent") it seems not to work I have compared both commands with wireshark and can't find any other issue. regards Andy
Hello, i try to communicate with my TV, I have one Software (Upnp Request Sender) with i can send the command to adjust the TV Volume this is working so far Now i have convert this to B4J with httputils2 i send The exactly command but this don't work. The only diverrence is that the Header Information about User-Agent / Connection Keep Alive / Accept encoding will be Send by B4j. With the other software this header is not send. So my guess is that my TV don't like this Header Information. Is it Possible to Remove This header Information? with request.RemoveHeaders("User-Agent") it seems not to work I have compared both commands with wireshark and can't find any other issue. regards Andy
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2019 #2 It will be surprising if the header causes this issue. You can make a test and create the request yourself with Socket + AsyncStreams. It is quite simple. See this example: https://www.b4x.com/android/forum/threads/b4x-class-mjpeg-decoder.73702/#post-468057 Upvote 0
It will be surprising if the header causes this issue. You can make a test and create the request yourself with Socket + AsyncStreams. It is quite simple. See this example: https://www.b4x.com/android/forum/threads/b4x-class-mjpeg-decoder.73702/#post-468057
Siam Active Member Licensed User Longtime User Oct 17, 2019 #3 Thanks for this information with this now i came a small step forward. i get a response from my tv after i send the header without useragend and so... and finaly it works Thank you Upvote 0
Thanks for this information with this now i came a small step forward. i get a response from my tv after i send the header without useragend and so... and finaly it works Thank you
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2019 #4 BTW, close the connection after you get the response. This makes everything simpler. You always open a new connection and close it after the response arrives. Upvote 0
BTW, close the connection after you get the response. This makes everything simpler. You always open a new connection and close it after the response arrives.