{"action":"created","issue":{"url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/issues/1","repository_url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities","labels_url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/issues/1/comments","events_url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/issues/1/events","html_url":"https://github.com/elcattivo/CloudFlareUtilities/issues/1","id":148962914,"number":1,"title":"Input string was not in a correct format.","user":{"login":"vshost","id":13677059,"avatar_url":"https://avatars.githubusercontent.com/u/13677059?v=3","gravatar_id":"","url":"https://api.github.com/users/vshost","html_url":"https://github.com/vshost","followers_url":"https://api.github.com/users/vshost/followers","following_url":"https://api.github.com/users/vshost/following{/other_user}","gists_url":"https://api.github.com/users/vshost/gists{/gist_id}","starred_url":"https://api.github.com/users/vshost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshost/subscriptions","organizations_url":"https://api.github.com/users/vshost/orgs","repos_url":"https://api.github.com/users/vshost/repos","events_url":"https://api.github.com/users/vshost/events{/privacy}","received_events_url":"https://api.github.com/users/vshost/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"elcattivo","id":1653523,"avatar_url":"https://avatars.githubusercontent.com/u/1653523?v=3","gravatar_id":"","url":"https://api.github.com/users/elcattivo","html_url":"https://github.com/elcattivo","followers_url":"https://api.github.com/users/elcattivo/followers","following_url":"https://api.github.com/users/elcattivo/following{/other_user}","gists_url":"https://api.github.com/users/elcattivo/gists{/gist_id}","starred_url":"https://api.github.com/users/elcattivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elcattivo/subscriptions","organizations_url":"https://api.github.com/users/elcattivo/orgs","repos_url":"https://api.github.com/users/elcattivo/repos","events_url":"https://api.github.com/users/elcattivo/events{/privacy}","received_events_url":"https://api.github.com/users/elcattivo/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-04-17T15:17:28Z","updated_at":"2016-04-17T17:16:29Z","closed_at":null,"body":"Hi,\r\n\r\nI tried this, but it doesnt work for some reason.\r\n\r\nThis is my code:\r\n```\r\n\r\n using System;\r\n using System.Net.Http;\r\n using System.Text.RegularExpressions;\r\n\r\n namespace CloudFlareUtilities.CloudFlare_Test\r\n {\r\n     class Program\r\n     {\r\n         static void Main(string[] args)\r\n         {\r\n             try\r\n             {\r\n                var handler = new ClearanceHandler();\r\n                var client = new HttpClient(handler);\r\n\r\n                var content = client.GetStringAsync(\"http://www.url.url/\").Result;\r\n                Console.WriteLine(content);\r\n            }\r\n            catch (AggregateException e)\r\n            {\r\n                Console.WriteLine(e.ToString());\r\n            }\r\n            Console.ReadLine();\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nAnd I will get the error:\r\n\r\n```\r\nSystem.AggregateException: One or more errors occurred. ---> System.FormatException: Input string was not in a correct format.\r\n   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)\r\n   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)\r\n   at CloudFlareUtilities.ChallengeSolver.DeobfuscateNumber(String obfuscatedNumber) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 43\r\n   at CloudFlareUtilities.ChallengeSolver.<>c.<DecodeSecretNumber>b__6_0(Match s) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 29\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)\r\n   at CloudFlareUtilities.ChallengeSolver.DecodeSecretNumber(String challengePageContent, String targetHost) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 30\r\n   at CloudFlareUtilities.ChallengeSolver.Solve(String challengePageContent, String targetHost) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 17\r\n   at CloudFlareUtilities.ClearanceHandler.<PassClearance>d__14.MoveNext() in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ClearanceHandler.cs:line 125\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at CloudFlareUtilities.ClearanceHandler.<SendAsync>d__10.MoveNext() in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ClearanceHandler.cs:line 73\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n   at System.Threading.Tasks.Task`1.get_Result()\r\n   at CloudFlareUtilities.CloudFlare_Test.Program.Main(String[] args) in c:\\users\\matthew\\documents\\visual studio 2015\\Projects\\CloudFlare Test\\CloudFlare Test\\Program.cs:line 16\r\n---> (Inner Exception #0) System.FormatException: Input string was not in a correct format.\r\n   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)\r\n   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)\r\n   at CloudFlareUtilities.ChallengeSolver.DeobfuscateNumber(String obfuscatedNumber) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 43\r\n   at CloudFlareUtilities.ChallengeSolver.<>c.<DecodeSecretNumber>b__6_0(Match s) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 29\r\n   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)\r\n   at CloudFlareUtilities.ChallengeSolver.DecodeSecretNumber(String challengePageContent, String targetHost) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 30\r\n   at CloudFlareUtilities.ChallengeSolver.Solve(String challengePageContent, String targetHost) in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ChallengeSolver.cs:line 17\r\n   at CloudFlareUtilities.ClearanceHandler.<PassClearance>d__14.MoveNext() in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ClearanceHandler.cs:line 125\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at CloudFlareUtilities.ClearanceHandler.<SendAsync>d__10.MoveNext() in ...\\CloudFlareUtilities\\CloudFlareUtilities\\ClearanceHandler.cs:line 73<---\r\n```\r\n\r\nLine 16 is:\r\n`var content = client.GetStringAsync(\"http://www.url.url/\").Result;`\r\n\r\nAny suggestions? Thanksx."},"comment":{"url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/issues/comments/211061870","html_url":"https://github.com/elcattivo/CloudFlareUtilities/issues/1#issuecomment-211061870","issue_url":"https://api.github.com/repos/elcattivo/CloudFlareUtilities/issues/1","id":211061870,"user":{"login":"vshost","id":13677059,"avatar_url":"https://avatars.githubusercontent.com/u/13677059?v=3","gravatar_id":"","url":"https://api.github.com/users/vshost","html_url":"https://github.com/vshost","followers_url":"https://api.github.com/users/vshost/followers","following_url":"https://api.github.com/users/vshost/following{/other_user}","gists_url":"https://api.github.com/users/vshost/gists{/gist_id}","starred_url":"https://api.github.com/users/vshost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshost/subscriptions","organizations_url":"https://api.github.com/users/vshost/orgs","repos_url":"https://api.github.com/users/vshost/repos","events_url":"https://api.github.com/users/vshost/events{/privacy}","received_events_url":"https://api.github.com/users/vshost/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T17:16:29Z","updated_at":"2016-04-17T17:16:29Z","body":"Strange. I mailed you the URL."}}