Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

319
Visualizações
"transferred over network" size larger than resource size

I am using XMLHttpRequest to read the json file and find that "transferred over network" is significantly larger than the resource size.enter image description here

xmlhttp.open("GET", "resources.json", true);

While others have resource size equal to or larger than "transferred over network". What happened to it? Should I be worried about this?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

"Transferred" is the sum of the bytes for the total sent and received data in the displayed requests.

"Resource size" is the sum of the bytes for the received data, that's why they don't match.

Consider this example:

enter image description here

See how the Resources matches with the sum of received bytes for each request.

enter image description here

enter image description here

over 4 years ago · Santiago Trujillo Relatório

0

Transfered is the total amount of bytes traveled in both directions, while resource size is the size of received response body.

A HTTP request is composite of url, request headers, request body, response headers and response body.

See a sample message of a HTTP request:

POST / HTTP/1.1
Host: foo.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 13

say=Hi&to=Mom

Note that the content length header is only 13 bytes (only the say=Hi&to=Mom size),while this entire HTTP message contains 111 bytes.

For more details see the message format section at https://en.m.wikipedia.org/wiki/Hypertext_Transfer_Protocol

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda