compression - Get compressed and uncompressed page size with PHP -
http://www.gidnetwork.com/tools/gzip-test.php great tool, need test site behind walls , want find similar results: compression type, markup size, compressed page size, , compression ratio.
how can both compressed , uncompressed page sizes? better method fetching data (file_get_contents()
or curl
)?
the response headers contain else needed - i'm not sure sizes.
you have use curl there 2 reasons so:
as need headers of request , can have through curl easily
file_get_contents()
used internally include things , not external source fetch data. if used external purposes there issue memory limit, size etc. have taken great care of.
Comments
Post a Comment