关于API接口GB2312的问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030" />
</head>
<%
subUrlxiaoqu = "http://data.esf.sina.com.cn/Apisinahouse/getlikecommtodis?district=宝山&communityname=呼玛五村&agentId=5147603320&companyId=1333&signature=87a5e15f522fe89861bedf39c04f26b0&dataType=json> &dataType=json"
Set Retrieval = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
Retrieval.open "GET", subUrlxiaoqu, False, "", ""
Retrieval.SetRequestHeader "Content-Type","text/html charset=gb2312"
Retrieval.send()
ResponseTxtxiaoqu = Retrieval.responseText
Set Retrieval = Nothing
end if
%>
<body>
<a href="<%=subUrlxiaoqu%>"><%=ResponseTxtxiaoqu %></a>
</body>
</html>
这是我写的一个API接口。对方也是GB2312的。从IE里直接打URL是测试通过的。但是我用GET方法就会反馈错误。这是什么原因
我下面的测试A HERF是可以取得正确的返回值的