The request is successful with server return the complete response on the website,as well as it is successful via gatling send request.
The reponse is html,but gatling get the response is incomplete.
I think a part of I need that is gatling supported resources.It is under the tag ‘table’,and also I don’t think content-length is reason.
what should i do?
Note: double posted on StackOverFlow. Already got an answer there, which I agree with.
Assuming you’re using a modern Gatling version and not an old possibly buggy one, if the response is truncated, it means it was truncated by the server or some intermediate network component (unless you manage to provide a reproducer that proves this is a Gatling issue, which I doubt).
The following response header by gatling log provide:
HTTP response:
status:
200 200
headers:
Date: Fri, 09 Dec 2022 07:47:28 GMT
Server: Apache
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Vary: Accept-Encoding
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
transfer-encoding: chunked
content-encoding: gzip
transfer-encoding: chunked ,It stands for block transfer。I think gatling cut it off, because it didn’t appear in the response header on the website。Of course,I may have misunderstand.
Oh,I found my mistake.
The cookie of request is missing a special value lead to response is incomplete.
Thank you all the same!