httpresponse - HTTP Response: Google misplaced the content-length -
httpresponse - HTTP Response: Google misplaced the content-length -
when receiving raw response http://www.google.com/
content-length
header missing. instead number of bytes receive placed after end of header code \r\n\r\n
before actual content.
i looked @ raw response , 8000
contains \r\n
end of line.
http/1.1 200 ok date: tue, 28 oct 2014 18:38:37 gmt expires: -1 cache-control: private, max-age=0 content-type: text/html; charset=iso-8859-1 set-cookie: ... set-cookie: ... p3p: ... server: gws x-xss-protection: 1; mode=block x-frame-options: sameorigin alternate-protocol: 80:quic,p=0.01 transfer-encoding: chunked
end of header (signified '\r\n\r\n') 8000 # has '\r\n', assuming content-length? <!doctype html><html itemscope="" itemtype="http://schema.org/webpage" lang="en"><head><meta content...`
end response so question why google damn special, can screw re-invention of http wheel. , if should business relationship happening in responses or google.
you should business relationship possibility responses, quite common. nil "special" , indeed legitimate behavior.
what you're assuming content-length chunk size, per chunked transfer encoding server responding with.
the response finish when chunk size of 0 encountered, effective content-length of chunked response equal sum of chunk sizes.
this has been part of http spec since 1999.
http httpresponse http-response-codes
Comments
Post a Comment