TheSketchees Member Licensed User Longtime User Feb 16, 2017 #1 I have the content type application/x-www-form-urlencoded but do not know how to set it so i can do a Post on it using HttpUtils2. Thanks Guys Alex
I have the content type application/x-www-form-urlencoded but do not know how to set it so i can do a Post on it using HttpUtils2. Thanks Guys Alex
TheSketchees Member Licensed User Longtime User Feb 16, 2017 #2 "Host: " + api_host + "\r\n" + "THINGSPEAKAPIKEY: " + api_key + "\r\n" + "Content-Type: application/x-www-form-urlencoded\r\n" + "Content-Length:" + data.length() + "\n\n" + data; Im trying to do this pretty much Upvote 0
"Host: " + api_host + "\r\n" + "THINGSPEAKAPIKEY: " + api_key + "\r\n" + "Content-Type: application/x-www-form-urlencoded\r\n" + "Content-Length:" + data.length() + "\n\n" + data; Im trying to do this pretty much
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2017 #3 Make sure that OkHttp library is checked. B4X: Job.PostString(...) Job.GetRequest.SetContentType("application/x-www-form-urlencoded") Upvote 0
Make sure that OkHttp library is checked. B4X: Job.PostString(...) Job.GetRequest.SetContentType("application/x-www-form-urlencoded")