B4J Question AsyncStreams and POST request: How to send a proper answer?

KMatle

Expert
Licensed User
Longtime User
I was using an AsynchStreams communication and for fun I had the idea to send a POST request (via OkHttpUtils) from a B4A app to a B4J app which worked like a charm. All data is received well including the http headers.

Now I'm trying to send a proper response back (via the same AsynchStream). The send is working, there are no errors, just a timeout of OkHttpUtils waiting for the response in the B4A app. I send back a string converted to UTF-8 bytes (as I've written: send works, no errors, but no data reaches the app so it times out).

Any ideas here? Do I need to set up headers? I would expect at least "some" data to arrive.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Upvote 0
Top