Problem with MakeWebRequest

Former Member
Former Member
Hi

I try to get data from a server. Data are JSON. My problem is that it looks like ConnectIQ refuse to handle the HTTP Body when Content-Type is "text/json; charset=UTF-8" : I get a -400 error (INVALID_HTTP_BODY_IN_NETWORK_RESPONSE). Unfortunatly I can't change the server bahavior :-( Is there any trick/workaround ?

Thans
  • Former Member
    Former Member
    Hi

    I try to get data from a server. Data are JSON. My problem is that it looks like ConnectIQ refuse to handle the HTTP Body when Content-Type is "text/json; charset=UTF-8" : I get a -400 error (INVALID_HTTP_BODY_IN_NETWORK_RESPONSE). Unfortunatly I can't change the server bahavior :-( Is there any trick/workaround ?

    Thans


    Look like adding :responseType => Comm.HTTP_RESPONSE_CONTENT_TYPE_JSON solved the issue !