T Tomas Petrus Active Member Licensed User Longtime User Aug 16, 2018 #1 Hi guys I am creating B4i application from B4A app. I am sending JSON to API and recieving response. But in B4i it seems that this doesnt exist B4X: j.GetRequest.SetContentType("application/json") So it seems I am actualy sending Map and not JSON and getting errors because of it. How can I set request to JSON ? thanks
Hi guys I am creating B4i application from B4A app. I am sending JSON to API and recieving response. But in B4i it seems that this doesnt exist B4X: j.GetRequest.SetContentType("application/json") So it seems I am actualy sending Map and not JSON and getting errors because of it. How can I set request to JSON ? thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2018 #2 Tomas Petrus said: But in B4i it seems that this doesnt exist Click to expand... Exact same code should work. Make sure that both iHttpUtils2 and iHttp libraries are referenced. Upvote 0
Tomas Petrus said: But in B4i it seems that this doesnt exist Click to expand... Exact same code should work. Make sure that both iHttpUtils2 and iHttp libraries are referenced.
T Tomas Petrus Active Member Licensed User Longtime User Aug 16, 2018 #3 Thanks that helped : ) Upvote 0