{"action":"created","comment":{"url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments/87566519","pull_request_review_id":8174710,"id":87566519,"diff_hunk":"@@ -0,0 +1,38 @@\n+# The sendingRequest and responseReceived functions will be called for all\n+# requests/responses sent/received by ZAP, # including automated tools (e.g.\n+# active scanner, fuzzer, ...)\n+\n+# Note that new HttpSender scripts will initially be disabled\n+# Right click the script in the Scripts tree and select \"enable\"\n+\n+# 'initiator' is the component the initiated the request:\n+#      1   PROXY_INITIATOR\n+#      2   ACTIVE_SCANNER_INITIATOR\n+#      3   SPIDER_INITIATOR\n+#      4   FUZZER_INITIATOR\n+#      5   AUTHENTICATION_INITIATOR\n+#      6   MANUAL_REQUEST_INITIATOR\n+#      7   CHECK_FOR_UPDATES_INITIATOR\n+#      8   BEAN_SHELL_INITIATOR\n+#      9   ACCESS_CONTROL_SCANNER_INITIATOR\n+# For the latest list of values see the HttpSender class:\n+# https://github.com/zaproxy/zaproxy/blob/master/src/org/parosproxy/paros/network/HttpSender.java\n+# 'helper' just has one method at the moment: helper.getHttpSender() which\n+# returns the HttpSender instance used to send the request.\n+#\n+# New requests can be made like this:\n+# msg2 = msg.cloneAll() # msg2 can then be safely changed without affecting msg\n+# helper.getHttpSender().sendAndReceive(msg2, false)\n+# print('msg2 response=' + msg2.getResponseHeader().getStatusCode())","path":"src/org/zaproxy/zap/extension/jython/files/scripts/templates/httpsender/HttpSender default template.py","position":null,"original_position":26,"commit_id":"3df0bc12590a660f9569595ab5aa83451ce972ff","original_commit_id":"46f76a48caf4bde8eca97f73b21c44cae72d1156","user":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"body":"Changed.","created_at":"2016-11-11T10:24:07Z","updated_at":"2016-11-11T10:24:07Z","html_url":"https://github.com/zaproxy/zap-extensions/pull/613#discussion_r87566519","pull_request_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613","_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments/87566519"},"html":{"href":"https://github.com/zaproxy/zap-extensions/pull/613#discussion_r87566519"},"pull_request":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613"}}},"pull_request":{"url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613","id":93252779,"html_url":"https://github.com/zaproxy/zap-extensions/pull/613","diff_url":"https://github.com/zaproxy/zap-extensions/pull/613.diff","patch_url":"https://github.com/zaproxy/zap-extensions/pull/613.patch","issue_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/613","number":613,"state":"open","locked":false,"title":"jython: add httpsender template script","user":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"body":"Add a Python HTTP Sender template script (same behaviour as JavaScript\r\ntemplate).\r\nUpdate changes and files in ZapAddOn.xml file.","created_at":"2016-11-10T23:33:53Z","updated_at":"2016-11-11T10:24:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac4e92e1de6665b0bb20598f5c169fb4ad5ca237","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613/commits","review_comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613/comments","review_comment_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/613/comments","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/3df0bc12590a660f9569595ab5aa83451ce972ff","head":{"label":"thc202:jython-httpsender-tmpl","ref":"jython-httpsender-tmpl","sha":"3df0bc12590a660f9569595ab5aa83451ce972ff","user":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"repo":{"id":36922225,"name":"zap-extensions","full_name":"thc202/zap-extensions","owner":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thc202/zap-extensions","description":"OWASP ZAP Add-ons","fork":true,"url":"https://api.github.com/repos/thc202/zap-extensions","forks_url":"https://api.github.com/repos/thc202/zap-extensions/forks","keys_url":"https://api.github.com/repos/thc202/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thc202/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thc202/zap-extensions/teams","hooks_url":"https://api.github.com/repos/thc202/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/thc202/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/thc202/zap-extensions/events","assignees_url":"https://api.github.com/repos/thc202/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/thc202/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/thc202/zap-extensions/tags","blobs_url":"https://api.github.com/repos/thc202/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thc202/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thc202/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/thc202/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thc202/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/thc202/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/thc202/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/thc202/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/thc202/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/thc202/zap-extensions/subscription","commits_url":"https://api.github.com/repos/thc202/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/thc202/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/thc202/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/thc202/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/thc202/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/thc202/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thc202/zap-extensions/merges","archive_url":"https://api.github.com/repos/thc202/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thc202/zap-extensions/downloads","issues_url":"https://api.github.com/repos/thc202/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/thc202/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/thc202/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/thc202/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thc202/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/thc202/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/thc202/zap-extensions/deployments","created_at":"2015-06-05T08:47:17Z","updated_at":"2016-10-28T22:27:17Z","pushed_at":"2016-11-11T10:23:17Z","git_url":"git://github.com/thc202/zap-extensions.git","ssh_url":"git@github.com:thc202/zap-extensions.git","clone_url":"https://github.com/thc202/zap-extensions.git","svn_url":"https://github.com/thc202/zap-extensions","homepage":"","size":691806,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"zaproxy:beta","ref":"beta","sha":"5b6035351af44bc15b05d8796d2b3501a59a3fd0","user":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"repo":{"id":35210580,"name":"zap-extensions","full_name":"zaproxy/zap-extensions","owner":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zaproxy/zap-extensions","description":"OWASP ZAP Add-ons","fork":false,"url":"https://api.github.com/repos/zaproxy/zap-extensions","forks_url":"https://api.github.com/repos/zaproxy/zap-extensions/forks","keys_url":"https://api.github.com/repos/zaproxy/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zaproxy/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zaproxy/zap-extensions/teams","hooks_url":"https://api.github.com/repos/zaproxy/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/zaproxy/zap-extensions/events","assignees_url":"https://api.github.com/repos/zaproxy/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/zaproxy/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/zaproxy/zap-extensions/tags","blobs_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/zaproxy/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/zaproxy/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/zaproxy/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/zaproxy/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/zaproxy/zap-extensions/subscription","commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/zaproxy/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/zaproxy/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zaproxy/zap-extensions/merges","archive_url":"https://api.github.com/repos/zaproxy/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zaproxy/zap-extensions/downloads","issues_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/zaproxy/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/zaproxy/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zaproxy/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/zaproxy/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/zaproxy/zap-extensions/deployments","created_at":"2015-05-07T09:17:13Z","updated_at":"2016-11-07T14:47:15Z","pushed_at":"2016-11-11T10:23:18Z","git_url":"git://github.com/zaproxy/zap-extensions.git","ssh_url":"git@github.com:zaproxy/zap-extensions.git","clone_url":"https://github.com/zaproxy/zap-extensions.git","svn_url":"https://github.com/zaproxy/zap-extensions","homepage":"","size":712634,"stargazers_count":98,"watchers_count":98,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":119,"mirror_url":null,"open_issues_count":19,"forks":119,"open_issues":19,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613"},"html":{"href":"https://github.com/zaproxy/zap-extensions/pull/613"},"issue":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/613"},"comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/613/comments"},"review_comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613/comments"},"review_comment":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/613/commits"},"statuses":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/3df0bc12590a660f9569595ab5aa83451ce972ff"}}}}
{"actor":{"display_login":"thc202"}}