{"action":"created","comment":{"url":"https://api.github.com/repos/a10networks/acos-client/pulls/comments/22752186","id":22752186,"diff_hunk":"@@ -111,13 +111,18 @@ def _http(self, method, api_url, payload):\n         else:\n             http = httplib.HTTPConnection(self.host, self.port)\n \n+        LOG.debug(\"axapi_http: url:     %s\", api_url)\n+        LOG.debug(\"axapi_http: method:  %s\", method)\n+        LOG.debug(\"axapi_http: headers: %s\", self.HEADERS)\n+        LOG.debug(\"axapi_http: payload: %s\", payload)\n+\n         http.request(method, api_url, payload, self.HEADERS)\n-        return http.getresponse().read()\n \n-    # temporary brutal hack\n-    def _url(self, action):\n-        return (\"/services/rest/v2.1/?format=json&method=%s&session_id=%s\" %\n-                (action, self.client.session.id))\n+        resp = http.getresponse()\n+        # print \"RESP \", dir(resp)\n+        # print \"RESP HEADERS\", resp.getheaders()","path":"acos_client/v21/axapi_http.py","position":56,"original_position":56,"commit_id":"778d3ecd95783d27e02f99352717a1717cdca443","original_commit_id":"778d3ecd95783d27e02f99352717a1717cdca443","user":{"login":"0xtobit","id":1410391,"avatar_url":"https://avatars.githubusercontent.com/u/1410391?v=3","gravatar_id":"","url":"https://api.github.com/users/0xtobit","html_url":"https://github.com/0xtobit","followers_url":"https://api.github.com/users/0xtobit/followers","following_url":"https://api.github.com/users/0xtobit/following{/other_user}","gists_url":"https://api.github.com/users/0xtobit/gists{/gist_id}","starred_url":"https://api.github.com/users/0xtobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xtobit/subscriptions","organizations_url":"https://api.github.com/users/0xtobit/orgs","repos_url":"https://api.github.com/users/0xtobit/repos","events_url":"https://api.github.com/users/0xtobit/events{/privacy}","received_events_url":"https://api.github.com/users/0xtobit/received_events","type":"User","site_admin":false},"body":"Do you want to leave these commented prints in?","created_at":"2015-01-10T00:03:20Z","updated_at":"2015-01-10T00:03:20Z","html_url":"https://github.com/a10networks/acos-client/pull/29#discussion_r22752186","pull_request_url":"https://api.github.com/repos/a10networks/acos-client/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/a10networks/acos-client/pulls/comments/22752186"},"html":{"href":"https://github.com/a10networks/acos-client/pull/29#discussion_r22752186"},"pull_request":{"href":"https://api.github.com/repos/a10networks/acos-client/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/a10networks/acos-client/pulls/29","id":27136860,"html_url":"https://github.com/a10networks/acos-client/pull/29","diff_url":"https://github.com/a10networks/acos-client/pull/29.diff","patch_url":"https://github.com/a10networks/acos-client/pull/29.patch","issue_url":"https://api.github.com/repos/a10networks/acos-client/issues/29","number":29,"state":"open","locked":false,"title":"Axapi 30","user":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-09T23:13:55Z","updated_at":"2015-01-10T00:03:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"321a057725ef1e2ca4436e3156b8829dc3a25a92","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/a10networks/acos-client/pulls/29/commits","review_comments_url":"https://api.github.com/repos/a10networks/acos-client/pulls/29/comments","review_comment_url":"https://api.github.com/repos/a10networks/acos-client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/a10networks/acos-client/issues/29/comments","statuses_url":"https://api.github.com/repos/a10networks/acos-client/statuses/778d3ecd95783d27e02f99352717a1717cdca443","head":{"label":"dougwig:axapi_30","ref":"axapi_30","sha":"778d3ecd95783d27e02f99352717a1717cdca443","user":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"repo":{"id":21666279,"name":"acos-client","full_name":"dougwig/acos-client","owner":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dougwig/acos-client","description":"ACOS API Client","fork":true,"url":"https://api.github.com/repos/dougwig/acos-client","forks_url":"https://api.github.com/repos/dougwig/acos-client/forks","keys_url":"https://api.github.com/repos/dougwig/acos-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dougwig/acos-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dougwig/acos-client/teams","hooks_url":"https://api.github.com/repos/dougwig/acos-client/hooks","issue_events_url":"https://api.github.com/repos/dougwig/acos-client/issues/events{/number}","events_url":"https://api.github.com/repos/dougwig/acos-client/events","assignees_url":"https://api.github.com/repos/dougwig/acos-client/assignees{/user}","branches_url":"https://api.github.com/repos/dougwig/acos-client/branches{/branch}","tags_url":"https://api.github.com/repos/dougwig/acos-client/tags","blobs_url":"https://api.github.com/repos/dougwig/acos-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dougwig/acos-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dougwig/acos-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/dougwig/acos-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dougwig/acos-client/statuses/{sha}","languages_url":"https://api.github.com/repos/dougwig/acos-client/languages","stargazers_url":"https://api.github.com/repos/dougwig/acos-client/stargazers","contributors_url":"https://api.github.com/repos/dougwig/acos-client/contributors","subscribers_url":"https://api.github.com/repos/dougwig/acos-client/subscribers","subscription_url":"https://api.github.com/repos/dougwig/acos-client/subscription","commits_url":"https://api.github.com/repos/dougwig/acos-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/dougwig/acos-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/dougwig/acos-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/dougwig/acos-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/dougwig/acos-client/contents/{+path}","compare_url":"https://api.github.com/repos/dougwig/acos-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dougwig/acos-client/merges","archive_url":"https://api.github.com/repos/dougwig/acos-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dougwig/acos-client/downloads","issues_url":"https://api.github.com/repos/dougwig/acos-client/issues{/number}","pulls_url":"https://api.github.com/repos/dougwig/acos-client/pulls{/number}","milestones_url":"https://api.github.com/repos/dougwig/acos-client/milestones{/number}","notifications_url":"https://api.github.com/repos/dougwig/acos-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dougwig/acos-client/labels{/name}","releases_url":"https://api.github.com/repos/dougwig/acos-client/releases{/id}","created_at":"2014-07-09T19:43:40Z","updated_at":"2014-07-09T22:46:45Z","pushed_at":"2015-01-09T23:45:07Z","git_url":"git://github.com/dougwig/acos-client.git","ssh_url":"git@github.com:dougwig/acos-client.git","clone_url":"https://github.com/dougwig/acos-client.git","svn_url":"https://github.com/dougwig/acos-client","homepage":null,"size":503,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"a10networks:master","ref":"master","sha":"ee28215d135a74ebbcec596f9a2f7a397dbf6252","user":{"login":"a10networks","id":5942705,"avatar_url":"https://avatars.githubusercontent.com/u/5942705?v=3","gravatar_id":"","url":"https://api.github.com/users/a10networks","html_url":"https://github.com/a10networks","followers_url":"https://api.github.com/users/a10networks/followers","following_url":"https://api.github.com/users/a10networks/following{/other_user}","gists_url":"https://api.github.com/users/a10networks/gists{/gist_id}","starred_url":"https://api.github.com/users/a10networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a10networks/subscriptions","organizations_url":"https://api.github.com/users/a10networks/orgs","repos_url":"https://api.github.com/users/a10networks/repos","events_url":"https://api.github.com/users/a10networks/events{/privacy}","received_events_url":"https://api.github.com/users/a10networks/received_events","type":"Organization","site_admin":false},"repo":{"id":21127286,"name":"acos-client","full_name":"a10networks/acos-client","owner":{"login":"a10networks","id":5942705,"avatar_url":"https://avatars.githubusercontent.com/u/5942705?v=3","gravatar_id":"","url":"https://api.github.com/users/a10networks","html_url":"https://github.com/a10networks","followers_url":"https://api.github.com/users/a10networks/followers","following_url":"https://api.github.com/users/a10networks/following{/other_user}","gists_url":"https://api.github.com/users/a10networks/gists{/gist_id}","starred_url":"https://api.github.com/users/a10networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a10networks/subscriptions","organizations_url":"https://api.github.com/users/a10networks/orgs","repos_url":"https://api.github.com/users/a10networks/repos","events_url":"https://api.github.com/users/a10networks/events{/privacy}","received_events_url":"https://api.github.com/users/a10networks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/a10networks/acos-client","description":"ACOS API Client","fork":false,"url":"https://api.github.com/repos/a10networks/acos-client","forks_url":"https://api.github.com/repos/a10networks/acos-client/forks","keys_url":"https://api.github.com/repos/a10networks/acos-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a10networks/acos-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a10networks/acos-client/teams","hooks_url":"https://api.github.com/repos/a10networks/acos-client/hooks","issue_events_url":"https://api.github.com/repos/a10networks/acos-client/issues/events{/number}","events_url":"https://api.github.com/repos/a10networks/acos-client/events","assignees_url":"https://api.github.com/repos/a10networks/acos-client/assignees{/user}","branches_url":"https://api.github.com/repos/a10networks/acos-client/branches{/branch}","tags_url":"https://api.github.com/repos/a10networks/acos-client/tags","blobs_url":"https://api.github.com/repos/a10networks/acos-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a10networks/acos-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a10networks/acos-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/a10networks/acos-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a10networks/acos-client/statuses/{sha}","languages_url":"https://api.github.com/repos/a10networks/acos-client/languages","stargazers_url":"https://api.github.com/repos/a10networks/acos-client/stargazers","contributors_url":"https://api.github.com/repos/a10networks/acos-client/contributors","subscribers_url":"https://api.github.com/repos/a10networks/acos-client/subscribers","subscription_url":"https://api.github.com/repos/a10networks/acos-client/subscription","commits_url":"https://api.github.com/repos/a10networks/acos-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/a10networks/acos-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/a10networks/acos-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/a10networks/acos-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/a10networks/acos-client/contents/{+path}","compare_url":"https://api.github.com/repos/a10networks/acos-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a10networks/acos-client/merges","archive_url":"https://api.github.com/repos/a10networks/acos-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a10networks/acos-client/downloads","issues_url":"https://api.github.com/repos/a10networks/acos-client/issues{/number}","pulls_url":"https://api.github.com/repos/a10networks/acos-client/pulls{/number}","milestones_url":"https://api.github.com/repos/a10networks/acos-client/milestones{/number}","notifications_url":"https://api.github.com/repos/a10networks/acos-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a10networks/acos-client/labels{/name}","releases_url":"https://api.github.com/repos/a10networks/acos-client/releases{/id}","created_at":"2014-06-23T13:31:20Z","updated_at":"2014-12-06T20:04:42Z","pushed_at":"2014-12-06T20:04:41Z","git_url":"git://github.com/a10networks/acos-client.git","ssh_url":"git@github.com:a10networks/acos-client.git","clone_url":"https://github.com/a10networks/acos-client.git","svn_url":"https://github.com/a10networks/acos-client","homepage":null,"size":486,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/a10networks/acos-client/pulls/29"},"html":{"href":"https://github.com/a10networks/acos-client/pull/29"},"issue":{"href":"https://api.github.com/repos/a10networks/acos-client/issues/29"},"comments":{"href":"https://api.github.com/repos/a10networks/acos-client/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/a10networks/acos-client/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/a10networks/acos-client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/a10networks/acos-client/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/a10networks/acos-client/statuses/778d3ecd95783d27e02f99352717a1717cdca443"}}}}