add redirection and content compressing processing code.
clean up code, added processing for chunked.
fix proxy, still not working on wikipedia. need to change the url to relative address.