Dear All,
I´m porting a b4a app to b4j, but I´m stuck now with where I´m logging into a service with jokhttputils, since what I´m getting back is a bunch of nonsense, eg.: �2���T���@�8�`2��)��R��%�l7�<U��^�ߔIKi�8/�� M8J�ya[&��9*�=Hbd�k��f\~ѓs�����C��ĥ��1
After making a POST request to the server (all using https). In the b4a version, I got plain text back from the server so I can only assume that this is the unecrypted data that I´m receiving.
A bit of my code:
This is the 3rd packet that arrives, the first two packets show as decrypted the way they should - exactly like in b4a, although they are also encrypted. I can see that in a network monitor.
Any clues? Perhaps certificate related?
I´m porting a b4a app to b4j, but I´m stuck now with where I´m logging into a service with jokhttputils, since what I´m getting back is a bunch of nonsense, eg.: �2���T���@�8�`2��)��R��%�l7�<U��^�ߔIKi�8/�� M8J�ya[&��9*�=Hbd�k��f\~ѓs�����C��ĥ��1
After making a POST request to the server (all using https). In the b4a version, I got plain text back from the server so I can only assume that this is the unecrypted data that I´m receiving.
A bit of my code:
B4X:
Sub login_A (parameters As String)
Dim HttpJob As HttpJob
HttpJob.Initialize("loginjob_A", Me)
HttpJob.PostString(MainURL & "blahblah",parameters)
B4X:
Sub jobdone (Job As HttpJob)
If Job.success = True Then
Log ("jobname " & Job.JobName)
Dim getstring As String = Job.GetString
Log (getstring)
This is the 3rd packet that arrives, the first two packets show as decrypted the way they should - exactly like in b4a, although they are also encrypted. I can see that in a network monitor.
Any clues? Perhaps certificate related?
Last edited: