String is being truncated when its too long

后端 未结 5 1634
执笔经年
执笔经年 2020-12-31 18:19

I am trying to get a JSON response from our server and the response string seems is always being truncated when the string length reaches to around 5525 characters.

5条回答
  •  盖世英雄少女心
    2020-12-31 19:03

    It is possible that the server can tell the difference between your browser and your application and is responding differently.

    Hack your Java code to print out the request and response headers, and compare them with the headers you get when using your browser.

    Also try doing the request using curl and/or wget from the command line. These give you a lot more information, plus the ability to set request headers.

提交回复
热议问题