Acquisition of Asphttp components (thieves teaching)

xiaoxiao2021-03-05  28

About Asphttp actually uses XMLHTTP to send a request to the remote web, then analyze remote information, so that the results you need Asphttp allows you to submit Get / Post / Head it is a component-based program . The characteristics included: GET, Head and post method Requests Returns the HTTP protocol header accepts the modified HTTP header to determine if the allowance support agent Set the client environment Custom Content-Type Headers for POST Auto Turn multiple login environments Remote files Convert to binary flow files to allow clients to HTTP requests. How to get asphttphttp: //soft.0zones.com/softview/softview_10659.html or directly to buy asphttp is not a free product, but it seems to have a registration bug, if you transfer your computer dates, transfer to 2004 This component can be used for legal use. It is the system time spoof, ^ _ ^ asphttp installation will save the following saved as a BAT file, run directly to install Asphttp

Code: [Copy to CLIPBOARD]

Echo Offecho Document Description: Component Registration Echo Welcome to the ASPHTTP component! Echo thieves tutorial Echo component version 3.Xcopy aspping.dll% WINDIR% / system32REGSVR32% WINDIR% / system32 / ask.dl

Here are a few special examples: 1. Get the address list on the page getURL.asp

Code: [Copy to CLIPBOARD]

<% server.scripttimeout = 240 set httpobj = server.createObject ("asphttp.conn") httpobj.url = "http://www.baidu.com/search/jiqiao.html" httpobj.RequestMethod = "GET" HttpObj.UserAgent = "Mozilla / 2.0 (compatible; MSIE 6.0B; Windows NT)" strResult = HttpObj.GetURL Response.Write "

A HREF List " varHREFArray = HttpObj.GetHREFs intHREFArrayLimit = Ubound (Varhrefarray) -1 for i = 0 to inthrefarrayLimit Response.write Varhrefarray (i) & "
" & vbcrf next%>

2. Get remote files and download them to local GetImg.asp

Code: [Copy to CLIPBOARD]

<% Server.scripttimeout = 240 set httpobj = server.createObject ("asphttp.conn") httpobj.url = "http://www.im286.com/images/im286/logo.gif" 'image or file address HTTP : //www.xxxx.com/index.html such suffixes have the full path HttpObj.FollowRedirects = false HttpObj.RequestMethod = "GET" HttpObj.UserAgent = "Mozilla / 2.0 (compatible; MSIE 6.01; Windows NT)" HttpObj .Savefileto = "d: /web/weburl/log.gif" 'Image or file save path httpobj.geturl response.write "has been successfully downloaded"%> 3. Get remote images and display IMG.asp

Code: [Copy to CLIPBOARD]

<% Response.contenttype = "image / gif" Remote file type set httpobj = server.createObject ("asphttp.conn") httpobj.url = "http://www.im286.com/images/im286/logo.gif "Httpobj.geturlresponse.binarywrite httpobj.binarydata%>

4. Get the contents of the remote page and save it to the local

Code: [Copy to CLIPBOARD]

<% Set httpobj = server.createObject ("asphttp.conn") httpobj.ur = "http://www.im286.com/index.php"'httpobj.postdata =" suid = jimb & pwd = macabre & id = 32 & val = 1.5 " HTTPObj.TimeOut = 1800HTTPObj.Accept = "* / *" HTTPObj.FollowRedirects = trueHTTPObj.Port = 80 'HTTPObj.Proxy = "xxx.net:8080"' using the proxy address, port 'HTTPObj.ProxyPassword = "proxyusername: proxypassword" 'Agent username, password httpobj.savefileto = "d: /web/weburl/index.html" Save the remote page to local httpobj.USERAGENT = "Mozilla Compatible (MS IE 3.01 Winnt)" httpobj.protocol = "http /1.1"HTTPObj.Authorization = "USER: pass" HTTPObj.ContentType = "application / x-www-form-urlencoded" HTTPObj.RequestMethod = "POST" 'HTTPObj.GetHREFs'HTTPObj.RequestMethod = "HEAD" strResult = HTTPObj. GetURLRESPONSE.WRITE STRRESULT%> Below is an animation of my own collection demonstration: http://bbs.cncome.com/collect1.rar

转载请注明原文地址:https://www.9cbs.com/read-34404.html

New Post(0)