fix gzip encoding

hi 

i just fixed the new gzip encoding and added total and itemsByPage in the parseResults function ...

it automatically check gzip/deflate or no encoding on responses...

thx