写日志 刷新 共 1 篇

继续教育网站验证码识别

2010-10-17 21:03:45 海蓝港湾

验证码地址: http://www.teacher.com.cn/ImageCode.aspx

调用方式: DownNetFile "http://www.teacher.com.cn/ImageCode.aspx", "h:\123.jpeg"

Private Sub DownNetFile(ByVal nUrl As String, ByVal nFile As String)
     Dim XmlHttp, B() As Byte
     Set XmlHttp = CreateObject("Microsoft.XMLHTTP")
     XmlHttp.Open "GET", nUrl, False
     XmlHttp.Send
     If XmlHttp.ReadyState = 4 Then
         B() = XmlHttp.ResponseBody
         Open nFile For Binary As #1
         Put #1, , B()
         Close #1
     End If
     Set XmlHttp = Nothing
End Sub

阅读全文 编辑 删除

Powered by BBSxp /Licence © 1998-2005
Script Execution Time:0ms
晋ICP备07500169号-1