# Fetch html response is not full via gatling

**URL:** <https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410>\
**Category:** Gatling (Open-Source)\
**Created:** [December 9, 2022, 10:10am UTC](https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410 "2022-12-09T10:10:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggrandy](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@ggrandy](https://community.gatling.io/u/ggrandy)\
**Post date:** [December 9, 2022, 10:10am UTC](https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410/1 "2022-12-09T10:10:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 9, 2022, 10:19am UTC](https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410/2 "2022-12-09T10:19:00Z")

</div>

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](https://community.gatling.io/t/how-to-ask-a-question/6538) that proves this is a Gatling issue, which I doubt).

---

<div class="post-metadata">

**Author:** ![ggrandy](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@ggrandy](https://community.gatling.io/u/ggrandy)\
**Post date:** [December 10, 2022, 4:01am UTC](https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410/3 "2022-12-10T04:01:59Z")

</div>

# 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.

---

<div class="post-metadata">

**Author:** ![ggrandy](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@ggrandy](https://community.gatling.io/u/ggrandy)\
**Post date:** [December 10, 2022, 4:17pm UTC](https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410/4 "2022-12-10T16:17:04Z")

</div>

Oh,I found my mistake.  
The cookie of request is missing a special value lead to response is incomplete.  
Thank you all the same!

---

<div class="post-metadata">

**Author:** ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)\
**Post date:** [December 10, 2022, 5:20pm UTC](https://community.gatling.io/t/fetch-html-response-is-not-full-via-gatling/7410/5 "2022-12-10T17:20:18Z")

</div>


