mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Escaped base64 payload in 2captcha image solve request.
This commit is contained in:
@@ -67,7 +67,7 @@ namespace RuriLib.CaptchaServices
|
||||
if (Timeout > 0) client.Timeout = Timeout;
|
||||
client.Headers.Add(HttpRequestHeader.ContentType, "application/x-www-form-urlencoded");
|
||||
var response = client.UploadString("http://2captcha.com/in.php",
|
||||
$"key={ApiKey}&method=base64®sense=1&body={GetBase64(bitmap, ImageFormat.Bmp)}");
|
||||
$"key={ApiKey}&method=base64®sense=1&body={Uri.EscapeDataString(GetBase64(bitmap, ImageFormat.Bmp))}");
|
||||
if (!response.StartsWith("OK")) throw new Exception(response);
|
||||
TaskId = response.Split('|')[1];
|
||||
Status = CaptchaStatus.Processing;
|
||||
|
||||
Reference in New Issue
Block a user