Last active
April 16, 2017 20:59
-
-
Save dend/b00a3a69c8d25917bd969cb8ea8099bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Task.Run(async () => { await ExecuteRunner(); }).GetAwaiter().GetResult(); | |
} | |
public static async Task<bool> ExecuteRunner() | |
{ | |
for (int i = 0; i < 583; i++) | |
{ | |
var guidString = Guid.NewGuid().ToString(); | |
var signupValues = new Dictionary<string, string> | |
{ | |
{ "signup[email]", guidString }, | |
{ "signup[share_hash]", "SOME_HASH_DUH" }, | |
{ "subscribe", "" } | |
}; | |
using (var client = new HttpClient()) | |
{ | |
var content = new FormUrlEncodedContent(signupValues); | |
var response = await client.PostAsync("https://apply.getfinal.com/signups", content); | |
var responseString = await response.Content.ReadAsStringAsync(); | |
Console.WriteLine($"Executed request {i} - {responseString}"); | |
} | |
} | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment