So I have this code:
partial void runflooder (Foundation.NSObject sender) {
string[] links;
{
links = new string[amount];
for (int i = 0; i < links.Length; i++)
{
email = $"ghoulrotmg{RandomString(10)}@gmail.com";
links[i] = "http://" + serverIP
+ ":" + serverPort + "/account/register?isAgeVerified=1&entrytag=&ignore=77240&newPassword=ghoulrotmg&newGUID="
+ email + "&guid=597BFBCFA0E1C4195FD6E8392557CD960361878D%22";
generateaccountsprogress.MaxValue = amount;
generateaccountsprogress.IncrementBy(amount);
}
runflooderlabel.StringValue = string.Format("App is running.");
runflooderlabel.TextColor = NSColor.SystemGreenColor;
for (int i = 0; i < links.Length; i++) {
WebRequest request = WebRequest.Create(links[i]);
}
progress.MaxValue = amount;
progress.IncrementBy(amount);
}
}
What I want to do, is generate links. Then, I want the app to visit those links that have been created. However, it isn't making any requests to the website. The links generated are fine, and are tested to be working (I wrote them to a file and it works). The error is obviously in here:
for (int i = 0; i < links.Length; i++) {
WebRequest request = WebRequest.Create(links[i]);
}
Can someone help me solve this issue.