700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 申通物流查询php 申通快递单号查询 | 申通快递查询

申通物流查询php 申通快递单号查询 | 申通快递查询

时间:2019-01-27 06:23:26

相关推荐

申通物流查询php 申通快递单号查询 | 申通快递查询

申通单号:" />

备用查询页

...正在查询,请稍等...

6 Then

If Request.Cookies("ip") = Ip Then

Response.Write("请稍等10秒后查询!

")

Else

geturl="/model/ajax.php?type=101&no="&no

html = getHTTPPage(geturl)

if html = "3" or html = "" then

Response.write "您查询的单号暂没信息,请过2小时再查询

"

Else

result = html

Response.write "您要查询的申通单号:"&no

Response.write "

"

result = Replace(result,"时间","时间") '替换内容代码

Response.write result

Response.write ""

function getHTTPPage(url)

dim Http

set Http=server.createobject("Microsoft.XMLHTTP")

Http.open "POST",url,false

Http.send()

if Http.readystate<>4 then

exit function

end if

getHTTPPage=BytesToBstr(Http.responseBody,"utf-8")

set Http=nothing

if err.number<>0 then err.Clear

end function

Function BytesToBstr(body,code)

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 = "utf-8"

BytesToBstr = objstream.ReadText

objstream.Close

set objstream = nothing

End Function

Response.Cookies("ip").Expires = DateAdd("s",3,Now())

Response.Cookies("ip") = Ip

End If

End If

End If

call ADS

Sub ADS

%>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。