{"action":"opened","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi/issues/202","labels_url":"https://api.github.com/repos/vmware/pyvmomi/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi/issues/202/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi/issues/202/events","html_url":"https://github.com/vmware/pyvmomi/issues/202","id":54602475,"number":202,"title":"Allow client to force non-compressed HTTP sessions.","user":{"login":"gxben","id":396753,"avatar_url":"https://avatars.githubusercontent.com/u/396753?v=3","gravatar_id":"","url":"https://api.github.com/users/gxben","html_url":"https://github.com/gxben","followers_url":"https://api.github.com/users/gxben/followers","following_url":"https://api.github.com/users/gxben/following{/other_user}","gists_url":"https://api.github.com/users/gxben/gists{/gist_id}","starred_url":"https://api.github.com/users/gxben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gxben/subscriptions","organizations_url":"https://api.github.com/users/gxben/orgs","repos_url":"https://api.github.com/users/gxben/repos","events_url":"https://api.github.com/users/gxben/events{/privacy}","received_events_url":"https://api.github.com/users/gxben/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T17:34:20Z","updated_at":"2015-01-16T17:34:20Z","closed_at":null,"body":"I had an issue with pyvmomi SDK where certain objects can't be accessed (SOAP Exception from HTTP request).\r\nIt appears to be due to the fact that pyvmomi adds gzip,deflate header to request and, under special circumstances, server responds with transfert-encoding being chunked.\r\n\r\nSoapAdapter class doesn't seems to handle HTTP chunked data at all, going through exception.\r\n\r\nAttached is a small patch that simply extends SmartConnect method to determine whether or not we want to propagate Accept-Encoding header in request, hence enabling or disabling any form of compression (until HTTP chunked data is properly handled).\r\nIt updates API but default behavior is kept unchanged unless parameter is being specified.\r\n\r\nSee http://pastebin.com/af0ZHHX3"}}