Hi all,
Please, HELP ME!
I am getting the error below using job.PostString(link, data)
I am using B4A v8.00 and OkHttpUtils2 (v2.61)
ResponseError. Reason: UNSUPPORTED MEDIA TYPE, Response: {
"message": "Request must have \"Content-Type: application/json\" header"
}
Source-code:
...
Dim job As HttpJob
job.Initialize("", Me)
job.Download2(link, Array As String("Content-Type", "application/json"))
job.PostString(link, data)
...
Everything works fine for GET and DELETE !!!
Thanks.
Cesar
Please, HELP ME!
I am getting the error below using job.PostString(link, data)
I am using B4A v8.00 and OkHttpUtils2 (v2.61)
ResponseError. Reason: UNSUPPORTED MEDIA TYPE, Response: {
"message": "Request must have \"Content-Type: application/json\" header"
}
Source-code:
...
Dim job As HttpJob
job.Initialize("", Me)
job.Download2(link, Array As String("Content-Type", "application/json"))
job.PostString(link, data)
...
Everything works fine for GET and DELETE !!!
Thanks.
Cesar