{"action":"created","comment":{"url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/comments/56178625","id":56178625,"diff_hunk":"@@ -0,0 +1,93 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Diagnostics;\n+using System.IO;\n+using System.Linq;\n+using System.Net;\n+using System.Text;\n+using System.Threading.Tasks;\n+\n+namespace Week9Networks\n+{\n+    /// <summary>\n+    /// Static class that controls a call to <see cref=\"WebServer\"/>.\n+    /// </summary>\n+    class Program\n+    {\n+        static void Main(string[] args)\n+        {\n+            int port;\n+            VeryifyArgs(args, out port);\n+            Console.WriteLine(\"You are running a server on port \" + port);\n+            WebServer server = new WebServer(\"http://localhost:\" + port + \"/\");","path":"Week9Networks/Week9Networks/Program.cs","position":22,"original_position":22,"commit_id":"7e7caa1564ab8ad1f44cf956e3a1a3dfeece6632","original_commit_id":"7e7caa1564ab8ad1f44cf956e3a1a3dfeece6632","user":{"login":"mattandccu","id":16492114,"avatar_url":"https://avatars.githubusercontent.com/u/16492114?v=3","gravatar_id":"","url":"https://api.github.com/users/mattandccu","html_url":"https://github.com/mattandccu","followers_url":"https://api.github.com/users/mattandccu/followers","following_url":"https://api.github.com/users/mattandccu/following{/other_user}","gists_url":"https://api.github.com/users/mattandccu/gists{/gist_id}","starred_url":"https://api.github.com/users/mattandccu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattandccu/subscriptions","organizations_url":"https://api.github.com/users/mattandccu/orgs","repos_url":"https://api.github.com/users/mattandccu/repos","events_url":"https://api.github.com/users/mattandccu/events{/privacy}","received_events_url":"https://api.github.com/users/mattandccu/received_events","type":"User","site_admin":false},"body":"It would be better to use the UriBuilder class to combine the port number with the hostname to ensure the URI is constructed correctly and as a safety net if your validation logic allows something that isn't valid or might produce a security issue with the HTTP endpoint.","created_at":"2016-03-15T15:07:34Z","updated_at":"2016-03-15T15:07:34Z","html_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises/pull/33#discussion_r56178625","pull_request_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/comments/56178625"},"html":{"href":"https://github.com/CCU-CIS-330-01-SP16/Exercises/pull/33#discussion_r56178625"},"pull_request":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33","id":62700274,"html_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises/pull/33","diff_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises/pull/33.diff","patch_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises/pull/33.patch","issue_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/33","number":33,"state":"open","locked":false,"title":"Added WebServer class and command line argument verification. Added a…","user":{"login":"jamesrlewis","id":16676221,"avatar_url":"https://avatars.githubusercontent.com/u/16676221?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrlewis","html_url":"https://github.com/jamesrlewis","followers_url":"https://api.github.com/users/jamesrlewis/followers","following_url":"https://api.github.com/users/jamesrlewis/following{/other_user}","gists_url":"https://api.github.com/users/jamesrlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrlewis/subscriptions","organizations_url":"https://api.github.com/users/jamesrlewis/orgs","repos_url":"https://api.github.com/users/jamesrlewis/repos","events_url":"https://api.github.com/users/jamesrlewis/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrlewis/received_events","type":"User","site_admin":false},"body":"… test to verify that query string parameters are added.","created_at":"2016-03-14T04:51:52Z","updated_at":"2016-03-15T15:07:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bde1cc9db12616b23dbea9387d28b21b0b0eebcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33/commits","review_comments_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33/comments","review_comment_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/33/comments","statuses_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/statuses/7e7caa1564ab8ad1f44cf956e3a1a3dfeece6632","head":{"label":"CCU-CIS-330-01-SP16:dev/rjl/Week9","ref":"dev/rjl/Week9","sha":"7e7caa1564ab8ad1f44cf956e3a1a3dfeece6632","user":{"login":"CCU-CIS-330-01-SP16","id":16492145,"avatar_url":"https://avatars.githubusercontent.com/u/16492145?v=3","gravatar_id":"","url":"https://api.github.com/users/CCU-CIS-330-01-SP16","html_url":"https://github.com/CCU-CIS-330-01-SP16","followers_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/followers","following_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/following{/other_user}","gists_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/gists{/gist_id}","starred_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/subscriptions","organizations_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/orgs","repos_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/repos","events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/events{/privacy}","received_events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/received_events","type":"Organization","site_admin":false},"repo":{"id":48892551,"name":"Exercises","full_name":"CCU-CIS-330-01-SP16/Exercises","owner":{"login":"CCU-CIS-330-01-SP16","id":16492145,"avatar_url":"https://avatars.githubusercontent.com/u/16492145?v=3","gravatar_id":"","url":"https://api.github.com/users/CCU-CIS-330-01-SP16","html_url":"https://github.com/CCU-CIS-330-01-SP16","followers_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/followers","following_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/following{/other_user}","gists_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/gists{/gist_id}","starred_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/subscriptions","organizations_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/orgs","repos_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/repos","events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/events{/privacy}","received_events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises","description":"Coding exercises for the CIS-330-01-SP16 course.","fork":false,"url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises","forks_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/forks","keys_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/teams","hooks_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/hooks","issue_events_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/events{/number}","events_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/events","assignees_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/assignees{/user}","branches_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/branches{/branch}","tags_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/tags","blobs_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/languages","stargazers_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/stargazers","contributors_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/contributors","subscribers_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/subscribers","subscription_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/subscription","commits_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/contents/{+path}","compare_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/merges","archive_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/downloads","issues_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues{/number}","pulls_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/labels{/name}","releases_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/releases{/id}","deployments_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/deployments","created_at":"2016-01-01T23:24:58Z","updated_at":"2016-01-25T04:24:05Z","pushed_at":"2016-03-14T05:34:21Z","git_url":"git://github.com/CCU-CIS-330-01-SP16/Exercises.git","ssh_url":"git@github.com:CCU-CIS-330-01-SP16/Exercises.git","clone_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises.git","svn_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises","homepage":null,"size":1008,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"CCU-CIS-330-01-SP16:master","ref":"master","sha":"7f0a325b9fae8d59d764def2e92468e7ae3c6025","user":{"login":"CCU-CIS-330-01-SP16","id":16492145,"avatar_url":"https://avatars.githubusercontent.com/u/16492145?v=3","gravatar_id":"","url":"https://api.github.com/users/CCU-CIS-330-01-SP16","html_url":"https://github.com/CCU-CIS-330-01-SP16","followers_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/followers","following_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/following{/other_user}","gists_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/gists{/gist_id}","starred_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/subscriptions","organizations_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/orgs","repos_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/repos","events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/events{/privacy}","received_events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/received_events","type":"Organization","site_admin":false},"repo":{"id":48892551,"name":"Exercises","full_name":"CCU-CIS-330-01-SP16/Exercises","owner":{"login":"CCU-CIS-330-01-SP16","id":16492145,"avatar_url":"https://avatars.githubusercontent.com/u/16492145?v=3","gravatar_id":"","url":"https://api.github.com/users/CCU-CIS-330-01-SP16","html_url":"https://github.com/CCU-CIS-330-01-SP16","followers_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/followers","following_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/following{/other_user}","gists_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/gists{/gist_id}","starred_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/subscriptions","organizations_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/orgs","repos_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/repos","events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/events{/privacy}","received_events_url":"https://api.github.com/users/CCU-CIS-330-01-SP16/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises","description":"Coding exercises for the CIS-330-01-SP16 course.","fork":false,"url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises","forks_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/forks","keys_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/teams","hooks_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/hooks","issue_events_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/events{/number}","events_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/events","assignees_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/assignees{/user}","branches_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/branches{/branch}","tags_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/tags","blobs_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/languages","stargazers_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/stargazers","contributors_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/contributors","subscribers_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/subscribers","subscription_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/subscription","commits_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/contents/{+path}","compare_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/merges","archive_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/downloads","issues_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues{/number}","pulls_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/labels{/name}","releases_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/releases{/id}","deployments_url":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/deployments","created_at":"2016-01-01T23:24:58Z","updated_at":"2016-01-25T04:24:05Z","pushed_at":"2016-03-14T05:34:21Z","git_url":"git://github.com/CCU-CIS-330-01-SP16/Exercises.git","ssh_url":"git@github.com:CCU-CIS-330-01-SP16/Exercises.git","clone_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises.git","svn_url":"https://github.com/CCU-CIS-330-01-SP16/Exercises","homepage":null,"size":1008,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33"},"html":{"href":"https://github.com/CCU-CIS-330-01-SP16/Exercises/pull/33"},"issue":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/33"},"comments":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/CCU-CIS-330-01-SP16/Exercises/statuses/7e7caa1564ab8ad1f44cf956e3a1a3dfeece6632"}}}}