Skip to content

Instantly share code, notes, and snippets.

@dend
Last active April 16, 2017 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dend/b00a3a69c8d25917bd969cb8ea8099bf to your computer and use it in GitHub Desktop.
Save dend/b00a3a69c8d25917bd969cb8ea8099bf to your computer and use it in GitHub Desktop.
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