odd behaviour in HTTP-library

moster67

Expert
Licensed User
Longtime User
I am using the latest HTTP-library (1.08) and my code fetches a playlist from a satellite-decoder using an URL in this fashion:

http://192.168.1.83:8888/video.m3u

If I save this file using for instance Firefox I get the expected file which looks like this (for your information below values are Audio and video-parameters used for streaming):

B4X:
http://192.168.1.83:31339/0,0454,00a0,0190,0191,0192

When I use my code in the HTTPClient's ResponseSuccess sub, the first couple of times I get the same (and correct) values as above but after 3-4 times, the result received is like this (it might actually change slightly):

B4X:
http://192.168.1.83:31339/0,ffffffff,00a0,3232ae78,3233fc40,32306a68

If I get the file from Firefox, I always get the correct line.

I use the following code to read the information and save it in my string-variable called channelinfo:

B4X:
channelinfo=Response.GetString("UTF8")

I also make sure to release Response.

Thus it seems like after a while, the data I want to retrieve gets "modified" like in the example above. If I exit my app and restart it, then I get the correct data again but only for a few times and then the data gets "dirty" again.

It should be said that using the corresponding code for HttpResponse in Basic4PPC, I always receive the correct result, just like I do with Firefox.

I really don't know what could be the problem. I have been struggling for quite some time to understand this but in vain. Could it be something related to encoding? Any hints what to look for? Or could it be something wrong in the HTTP-library?
 

moster67

Expert
Licensed User
Longtime User
Please disregard my previous post for the time being. I might have resolved the issue although I still have to verify (will do so this evening).

Thanks.
 
Upvote 0
Top