[Android Q&A, Help & Troubleshooting] Fredrik Bjurén:
Hi,

I having a problem I'm confused about and seeking help. I get an correct response from API when running java.class stand alone but when my app is calling on the same function the api respond with a different response that is not working. How can this happend? Is some setting in the app that needs to be adjusted? The responses take longer time through the app aswell. Response body in correct version 1939 byte and in not working 229 byte.

I've checked the logs with interceptor for OkHttp but can't se any difference in the Http POST's.

This is the working stand alone response:

nov. 05, 2023 9:38:19 FM okhttp3.internal.platform.Platform log

INFO: --> POST https://tap-eu.soimt.com/TAP.Web/ota.mp

nov. 05, 2023 9:38:19 FM okhttp3.internal.platform.Platform log

INFO: Content-Type: text/html; charset=ISO-8859-1

nov. 05, 2023 9:38:19 FM okhttp3.internal.platform.Platform log

INFO: Content-Length: 205

nov. 05, 2023 9:38:19 FM okhttp3.internal.platform.Platform log

INFO:

nov. 05, 2023 9:38:19 FM okhttp3.internal.platform.Platform log

INFO: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...............

nov. 05, 2023 9:38:19 FM okhttp3.internal.platform.Platform log

INFO: --> END POST (205-byte body)

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: <-- 200 https://tap-eu.soimt.com/TAP.Web/ota.mp (995ms)

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: date: Sun, 05 Nov 2023 08:38:20 GMT

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: content-type: text/html;charset=ISO-8859-1

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: set-cookie: JSESSIONID=0960B75xxxxxxxxxDB10; Path=/TAP.Web; HttpOnly

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: out_timestamp: 1699173500425

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO:

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...

nov. 05, 2023 9:38:20 FM okhttp3.internal.platform.Platform log

INFO: <-- END HTTP (1939-byte body)

and this is through the app that doesnt work:

--> POST https://tap-eu.soimt.com/TAP.Web/ota.mp

2023-11-05 09:37:20.285 11513-11557 okhttp.OkHttpClient I Content-Type: text/html; charset=ISO-8859-1

2023-11-05 09:37:20.285 11513-11557 okhttp.OkHttpClient I Content-Length: 205

2023-11-05 09:37:20.287 11513-11557 okhttp.OkHttpClient I xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.........

2023-11-05 09:37:20.288 11513-11557 okhttp.OkHttpClient I --> END POST (205-byte body)

2023-11-05 09:37:20.372 11513-11557 TrafficStats D tagSocket(106) with statsTag=0xffffffff, statsUid=-1

2023-11-05 09:37:50.794 11513-11557 okhttp.OkHttpClient I <-- 200 https://tap-eu.soimt.com/TAP.Web/ota.mp (30506ms)

2023-11-05 09:37:50.795 11513-11557 okhttp.OkHttpClient I date: Sun, 05 Nov 2023 08:37:52 GMT

2023-11-05 09:37:50.795 11513-11557 okhttp.OkHttpClient I content-type: text/html;charset=ISO-8859-1

2023-11-05 09:37:50.795 11513-11557 okhttp.OkHttpClient I set-cookie: JSESSIONID=09CB65C6878xxxxxxxxxxxxE8DB5; Path=/TAP.Web; HttpOnly

2023-11-05 09:37:50.796 11513-11557 okhttp.OkHttpClient I out_timestamp: 1699173472857

2023-11-05 09:37:50.800 11513-11557 okhttp.OkHttpClient I xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...

2023-11-05 09:37:50.800 11513-11557 okhttp.OkHttpClient I <-- END HTTP (229-byte body)