Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
remoteCode.asp
Package: qiyeguanli.rar [view]
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 1k
Category:
WEB(ASP,PHP,...)
Development Platform:
VBScript
- <%
- 'On Error Resume Next
- 'Server.ScriptTimeOut=9999999
- Function getHTTPPage(Path)
- t = GetBody(Path)
- getHTTPPage=BytesToBstr(t,"GB2312")
- End function
- Function GetBody(url)
- on error resume next
- Set Retrieval = CreateObject("Microsoft.XMLHTTP")
- With Retrieval
- .Open "Get", url, False, "", ""
- .Send
- GetBody = .ResponseBody
- End With
- Set Retrieval = Nothing
- End Function
- 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
- Function Newstring(wstr,strng)
- Newstring=Instr(lcase(wstr),lcase(strng))
- if Newstring<=0 then Newstring=Len(wstr)
- End Function
- %>
- <%
- Function GetCode(user,password,codeNumber)
- dim url
- url="http://localhost/test/index.asp?user="&user&"&pass="&password&"&codenumber="&codeNumber
- GetCode=getHTTPPage(url)
- end Function
- %>