我想要解决一个验证码,所以我使用了2captcha服务,但我不理解about请求的分块。
分块示例:
<form method="post" action="http://2captcha.com/in.php" enctype="multipart/form-data">
<input type="hidden" name="method" value="post">
Your key:
<input type="text" name="key" value="YOUR_APIKEY">
The CAPTCHA file:
<input type="file" name="file">
<input type="submit" value="download and get the ID">
</form>发布于 2016-05-28 18:30:14
这只是post请求的示意图。您的帖子数据将如下所示:method=post&key=your_apikey&file=...
我建议先看一下base64示例,然后将验证码图像转换为byte []格式,并使用类似Convert.ToBase64 (...)的格式将其转换为base64。
您可以使用WebClient提交post请求。
https://stackoverflow.com/questions/37496592
复制相似问题