{"action":"opened","number":130,"pull_request":{"url":"https://api.github.com/repos/sergot/http-useragent/pulls/130","id":52758140,"html_url":"https://github.com/sergot/http-useragent/pull/130","diff_url":"https://github.com/sergot/http-useragent/pull/130.diff","patch_url":"https://github.com/sergot/http-useragent/pull/130.patch","issue_url":"https://api.github.com/repos/sergot/http-useragent/issues/130","number":130,"state":"open","locked":false,"title":"Added a :debug flag to UA::new and fix cookies","user":{"login":"Skarsnik","id":12981631,"avatar_url":"https://avatars.githubusercontent.com/u/12981631?v=3","gravatar_id":"","url":"https://api.github.com/users/Skarsnik","html_url":"https://github.com/Skarsnik","followers_url":"https://api.github.com/users/Skarsnik/followers","following_url":"https://api.github.com/users/Skarsnik/following{/other_user}","gists_url":"https://api.github.com/users/Skarsnik/gists{/gist_id}","starred_url":"https://api.github.com/users/Skarsnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skarsnik/subscriptions","organizations_url":"https://api.github.com/users/Skarsnik/orgs","repos_url":"https://api.github.com/users/Skarsnik/repos","events_url":"https://api.github.com/users/Skarsnik/events{/privacy}","received_events_url":"https://api.github.com/users/Skarsnik/received_events","type":"User","site_admin":false},"body":"Now you can write UA::new(:debug)\r\nit will should stuff like \r\n\r\n===>Send\r\nPOST /ajax/login.php HTTP/1.1\r\nHost: www.fimfiction.net\r\ncontent-length: 37\r\ncontent-type: application/x-www-form-urlencoded\r\nUser-Agent: This A Bot\r\n\r\npassword=edited&username=ExFerrel\r\n\r\n<===Reicv\r\nHTTP/1.1 200 OK\r\nServer: cloudflare-nginx\r\nDate: Sat, 05 Dec 2015 16:23:51 GMT\r\nContent-Type: application/json; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: close\r\nSet-Cookie: __cfduid=edited; expires=Sun, 04-Dec-16 16:23:51 GMT; path=/; domain=.fimfiction.net; HttpOnly, session_token=editedGe; path=/; domain=.fimfiction.net; httponly, ssl_check=1; path=/; domain=.fimfiction.net\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.5.9-1ubuntu4.14\r\nCache-Control: no-cache\r\nCF-RAY: 250119105ce93c0b-CDG\r\n\r\n=Content contains: 71 chars - Displaying only the 100 first\r\n{\"signing_key\":\"edited\",\"force_secure\":false}\r\n\r\n===>Send\r\nGET /feed HTTP/1.1\r\nHost: www.fimfiction.net\r\nCookie2: $Version=\"1\"\r\nCookie: __cfduid=edited; session_token=edited; ssl_check=1; \r\nUser-Agent: This A Bot\r\n\r\n<===Reicv\r\nHTTP/1.1 200 OK\r\nServer: cloudflare-nginx\r\nDate: Sat, 05 Dec 2015 16:23:52 GMT\r\nContent-Type: text/html; charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: close\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.5.9-1ubuntu4.14\r\nCache-Control: must-revalidate, private, max-age=0\r\nX-UA-Compatible: IE=edge;chrome=1\r\nX-Frame-Options: SAMEORIGIN\r\nCF-RAY: 250119151c881073-CDG\r\n\r\n=Content contains: 85351 chars - Displaying only the 100 first\r\n<!DOCTYPE html>\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\r\n<head>\r\n        <meta ht\r\n\r\n\r\n\r\nAlso the cookie grammar was wrong, cuting date in chuck. I also put path/domain/expires as normal Cookie attribute and not in the fields since there are specials","created_at":"2015-12-05T16:26:48Z","updated_at":"2015-12-05T16:26:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sergot/http-useragent/pulls/130/commits","review_comments_url":"https://api.github.com/repos/sergot/http-useragent/pulls/130/comments","review_comment_url":"https://api.github.com/repos/sergot/http-useragent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sergot/http-useragent/issues/130/comments","statuses_url":"https://api.github.com/repos/sergot/http-useragent/statuses/74958aa9c930204b8e811d86267f71c0f79121fa","head":{"label":"Skarsnik:master","ref":"master","sha":"74958aa9c930204b8e811d86267f71c0f79121fa","user":{"login":"Skarsnik","id":12981631,"avatar_url":"https://avatars.githubusercontent.com/u/12981631?v=3","gravatar_id":"","url":"https://api.github.com/users/Skarsnik","html_url":"https://github.com/Skarsnik","followers_url":"https://api.github.com/users/Skarsnik/followers","following_url":"https://api.github.com/users/Skarsnik/following{/other_user}","gists_url":"https://api.github.com/users/Skarsnik/gists{/gist_id}","starred_url":"https://api.github.com/users/Skarsnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skarsnik/subscriptions","organizations_url":"https://api.github.com/users/Skarsnik/orgs","repos_url":"https://api.github.com/users/Skarsnik/repos","events_url":"https://api.github.com/users/Skarsnik/events{/privacy}","received_events_url":"https://api.github.com/users/Skarsnik/received_events","type":"User","site_admin":false},"repo":{"id":47455235,"name":"http-useragent","full_name":"Skarsnik/http-useragent","owner":{"login":"Skarsnik","id":12981631,"avatar_url":"https://avatars.githubusercontent.com/u/12981631?v=3","gravatar_id":"","url":"https://api.github.com/users/Skarsnik","html_url":"https://github.com/Skarsnik","followers_url":"https://api.github.com/users/Skarsnik/followers","following_url":"https://api.github.com/users/Skarsnik/following{/other_user}","gists_url":"https://api.github.com/users/Skarsnik/gists{/gist_id}","starred_url":"https://api.github.com/users/Skarsnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skarsnik/subscriptions","organizations_url":"https://api.github.com/users/Skarsnik/orgs","repos_url":"https://api.github.com/users/Skarsnik/repos","events_url":"https://api.github.com/users/Skarsnik/events{/privacy}","received_events_url":"https://api.github.com/users/Skarsnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Skarsnik/http-useragent","description":"Web user agent class for Perl 6.","fork":true,"url":"https://api.github.com/repos/Skarsnik/http-useragent","forks_url":"https://api.github.com/repos/Skarsnik/http-useragent/forks","keys_url":"https://api.github.com/repos/Skarsnik/http-useragent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Skarsnik/http-useragent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Skarsnik/http-useragent/teams","hooks_url":"https://api.github.com/repos/Skarsnik/http-useragent/hooks","issue_events_url":"https://api.github.com/repos/Skarsnik/http-useragent/issues/events{/number}","events_url":"https://api.github.com/repos/Skarsnik/http-useragent/events","assignees_url":"https://api.github.com/repos/Skarsnik/http-useragent/assignees{/user}","branches_url":"https://api.github.com/repos/Skarsnik/http-useragent/branches{/branch}","tags_url":"https://api.github.com/repos/Skarsnik/http-useragent/tags","blobs_url":"https://api.github.com/repos/Skarsnik/http-useragent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Skarsnik/http-useragent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Skarsnik/http-useragent/git/refs{/sha}","trees_url":"https://api.github.com/repos/Skarsnik/http-useragent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Skarsnik/http-useragent/statuses/{sha}","languages_url":"https://api.github.com/repos/Skarsnik/http-useragent/languages","stargazers_url":"https://api.github.com/repos/Skarsnik/http-useragent/stargazers","contributors_url":"https://api.github.com/repos/Skarsnik/http-useragent/contributors","subscribers_url":"https://api.github.com/repos/Skarsnik/http-useragent/subscribers","subscription_url":"https://api.github.com/repos/Skarsnik/http-useragent/subscription","commits_url":"https://api.github.com/repos/Skarsnik/http-useragent/commits{/sha}","git_commits_url":"https://api.github.com/repos/Skarsnik/http-useragent/git/commits{/sha}","comments_url":"https://api.github.com/repos/Skarsnik/http-useragent/comments{/number}","issue_comment_url":"https://api.github.com/repos/Skarsnik/http-useragent/issues/comments{/number}","contents_url":"https://api.github.com/repos/Skarsnik/http-useragent/contents/{+path}","compare_url":"https://api.github.com/repos/Skarsnik/http-useragent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Skarsnik/http-useragent/merges","archive_url":"https://api.github.com/repos/Skarsnik/http-useragent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Skarsnik/http-useragent/downloads","issues_url":"https://api.github.com/repos/Skarsnik/http-useragent/issues{/number}","pulls_url":"https://api.github.com/repos/Skarsnik/http-useragent/pulls{/number}","milestones_url":"https://api.github.com/repos/Skarsnik/http-useragent/milestones{/number}","notifications_url":"https://api.github.com/repos/Skarsnik/http-useragent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Skarsnik/http-useragent/labels{/name}","releases_url":"https://api.github.com/repos/Skarsnik/http-useragent/releases{/id}","created_at":"2015-12-05T12:36:01Z","updated_at":"2015-12-05T12:36:02Z","pushed_at":"2015-12-05T16:21:31Z","git_url":"git://github.com/Skarsnik/http-useragent.git","ssh_url":"git@github.com:Skarsnik/http-useragent.git","clone_url":"https://github.com/Skarsnik/http-useragent.git","svn_url":"https://github.com/Skarsnik/http-useragent","homepage":"","size":245,"stargazers_count":0,"watchers_count":0,"language":"Perl6","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":"sergot:master","ref":"master","sha":"d5d70f867469ecfe650b0d7f548af63988f2c312","user":{"login":"sergot","id":1027825,"avatar_url":"https://avatars.githubusercontent.com/u/1027825?v=3","gravatar_id":"","url":"https://api.github.com/users/sergot","html_url":"https://github.com/sergot","followers_url":"https://api.github.com/users/sergot/followers","following_url":"https://api.github.com/users/sergot/following{/other_user}","gists_url":"https://api.github.com/users/sergot/gists{/gist_id}","starred_url":"https://api.github.com/users/sergot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergot/subscriptions","organizations_url":"https://api.github.com/users/sergot/orgs","repos_url":"https://api.github.com/users/sergot/repos","events_url":"https://api.github.com/users/sergot/events{/privacy}","received_events_url":"https://api.github.com/users/sergot/received_events","type":"User","site_admin":false},"repo":{"id":8250196,"name":"http-useragent","full_name":"sergot/http-useragent","owner":{"login":"sergot","id":1027825,"avatar_url":"https://avatars.githubusercontent.com/u/1027825?v=3","gravatar_id":"","url":"https://api.github.com/users/sergot","html_url":"https://github.com/sergot","followers_url":"https://api.github.com/users/sergot/followers","following_url":"https://api.github.com/users/sergot/following{/other_user}","gists_url":"https://api.github.com/users/sergot/gists{/gist_id}","starred_url":"https://api.github.com/users/sergot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergot/subscriptions","organizations_url":"https://api.github.com/users/sergot/orgs","repos_url":"https://api.github.com/users/sergot/repos","events_url":"https://api.github.com/users/sergot/events{/privacy}","received_events_url":"https://api.github.com/users/sergot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sergot/http-useragent","description":"Web user agent class for Perl 6.","fork":false,"url":"https://api.github.com/repos/sergot/http-useragent","forks_url":"https://api.github.com/repos/sergot/http-useragent/forks","keys_url":"https://api.github.com/repos/sergot/http-useragent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sergot/http-useragent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sergot/http-useragent/teams","hooks_url":"https://api.github.com/repos/sergot/http-useragent/hooks","issue_events_url":"https://api.github.com/repos/sergot/http-useragent/issues/events{/number}","events_url":"https://api.github.com/repos/sergot/http-useragent/events","assignees_url":"https://api.github.com/repos/sergot/http-useragent/assignees{/user}","branches_url":"https://api.github.com/repos/sergot/http-useragent/branches{/branch}","tags_url":"https://api.github.com/repos/sergot/http-useragent/tags","blobs_url":"https://api.github.com/repos/sergot/http-useragent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sergot/http-useragent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sergot/http-useragent/git/refs{/sha}","trees_url":"https://api.github.com/repos/sergot/http-useragent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sergot/http-useragent/statuses/{sha}","languages_url":"https://api.github.com/repos/sergot/http-useragent/languages","stargazers_url":"https://api.github.com/repos/sergot/http-useragent/stargazers","contributors_url":"https://api.github.com/repos/sergot/http-useragent/contributors","subscribers_url":"https://api.github.com/repos/sergot/http-useragent/subscribers","subscription_url":"https://api.github.com/repos/sergot/http-useragent/subscription","commits_url":"https://api.github.com/repos/sergot/http-useragent/commits{/sha}","git_commits_url":"https://api.github.com/repos/sergot/http-useragent/git/commits{/sha}","comments_url":"https://api.github.com/repos/sergot/http-useragent/comments{/number}","issue_comment_url":"https://api.github.com/repos/sergot/http-useragent/issues/comments{/number}","contents_url":"https://api.github.com/repos/sergot/http-useragent/contents/{+path}","compare_url":"https://api.github.com/repos/sergot/http-useragent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sergot/http-useragent/merges","archive_url":"https://api.github.com/repos/sergot/http-useragent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sergot/http-useragent/downloads","issues_url":"https://api.github.com/repos/sergot/http-useragent/issues{/number}","pulls_url":"https://api.github.com/repos/sergot/http-useragent/pulls{/number}","milestones_url":"https://api.github.com/repos/sergot/http-useragent/milestones{/number}","notifications_url":"https://api.github.com/repos/sergot/http-useragent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sergot/http-useragent/labels{/name}","releases_url":"https://api.github.com/repos/sergot/http-useragent/releases{/id}","created_at":"2013-02-17T12:18:17Z","updated_at":"2015-12-02T08:05:52Z","pushed_at":"2015-11-27T10:08:55Z","git_url":"git://github.com/sergot/http-useragent.git","ssh_url":"git@github.com:sergot/http-useragent.git","clone_url":"https://github.com/sergot/http-useragent.git","svn_url":"https://github.com/sergot/http-useragent","homepage":"","size":343,"stargazers_count":16,"watchers_count":16,"language":"Perl6","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":11,"forks":18,"open_issues":11,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sergot/http-useragent/pulls/130"},"html":{"href":"https://github.com/sergot/http-useragent/pull/130"},"issue":{"href":"https://api.github.com/repos/sergot/http-useragent/issues/130"},"comments":{"href":"https://api.github.com/repos/sergot/http-useragent/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/sergot/http-useragent/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/sergot/http-useragent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sergot/http-useragent/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/sergot/http-useragent/statuses/74958aa9c930204b8e811d86267f71c0f79121fa"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":54,"deletions":27,"changed_files":6}}