I want to send my captcha images to GSA Captchabreaker in C#.
Hello,
I'm currently using C# to automate a website registration. I managed to get the captcha to be working 30% in gsa captchabreaker however I have no idea how to send my images to captchabreaker for it to break. I got the captcha images already ready to be sent but how can I send it to GSA Captchabreaker?
Sincerely,
Samed.
I'm currently using C# to automate a website registration. I managed to get the captcha to be working 30% in gsa captchabreaker however I have no idea how to send my images to captchabreaker for it to break. I got the captcha images already ready to be sent but how can I send it to GSA Captchabreaker?
Sincerely,
Samed.
Comments
var imagefile = "captcha.jpg"; var form = new MultipartFormDataContent { {new StringContent("username"), "username"}, {new StringContent("password"), "password"}, {new StringContent("picture2"), "function"}, {new ByteArrayContent(File.ReadAllBytes(imagefile)), "pict", imagefile} }; var client = new HttpClient(); var response = client.PostAsync("http://127.0.0.1:80/", form).Result; var result = response.Content.ReadAsStringAsync().Result;