A thief !! If you are interested, please check it out !!

Source: Internet
Author: User
Tags chr
Class Code (cls. asp)
<%
Class clsThief
Private strUrl 'steal address
Private strvalue' stolen content, all content
Private strResult 'steal the result. You can specify a specific part of the content.
Private Flag' has been stolen
'------- Initialization class --------'
Private Sub Class_Initialize ()
StrUrl = ""
StrValue = ""
StrResult = ""
Flag = false
End Sub
'------ Class end -----------'
Private Sub Class_Terminate ()
End Sub
'------ Initialize url attributes ----'
Public Property Let url (ByVal iurl)
StrUrl = iurl
End Property
'------ Returned Output Content ----'
Public property get value
Value = strValue
End property
Public property get result
Result = strResult
End property
'------------ Text processing -----------'
Private Function BytesToBstr (body, Cset)
Dim objstream
Set objstream = Server. CreateObject ("adodb. stream ")
Objstream. Type = 1
Objstream. Mode = 3
Objstream. Open
Objstream. Write body
Objstream. Position = 0
Objstream. Type = 2
Objstream. Charset = Cset
BytesToBstr = objstream. ReadText
Objstream. Close
Set objstream = nothing
End Function
'------- Text processing -------'
Private Function Ichange (str)
Dim finalStr
Dim icharCode
Dim inextCode
For I = 1 To lenb (str)
IcharCode = ascb (midb (str, I, 1 ))
If icharCode <& H80 Then
FinalStr = finalStr & chr (icharCode)
Else
InextCode = ascb (midb (str, I + 1, 1 ))
Finalstr = finalstr & chr (clng (icharCode) * & H100 + cint (inextCode ))
I = I + 1
End If
Next
Ichange = finalStr
End Function
'------- Content capture --------'
Public sub Seize ()
If strUrl <> "" then
Dim iconnect
Set iconnect = CreateObject ("Microsoft. XMLHTTP ")
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.