A
autumn
Unregistered / Unconfirmed
GUEST, unregistred user!
我知道TIDHttp,TNMHttp可以调用TIDHttp.Get或TNMHttp.Get就可以返回了。
但是我现在Lan里的proxy是Microsoft Internet Security and Acceleration Server 2000,
使用IE能正确浏览网页,但是
使用TIDHttp,TNMHttp都不能正确返回结果。
TIDHttp返回的错误:
403 Forbidden(The ISA Server denies the specified Uniform Resource Locator(URL).
TNMHttp返回的错误是:
Header:
HTTP/1.1 403 Forbidden ( The ISA Server denies the specified Uniform Resource Locator (URL). )
Via:1.1 ISA
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 3164
Body:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
<STYLE>A:link {
FONT: 8pt/11pt verdana; COLOR: #ff0000
}
A:visited {
FONT: 8pt/11pt verdana; COLOR: #4e4e4e
}
</STYLE>
<META content=NOINDEX name=ROBOTS>
<META http-equiv=Content-Type content="text-html; charset=Windows-1252">
<SCRIPT>
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL=document.URL;
//this is where the http or https will be, as found by searching for :// but skipping the res://
protocolIndex=DocURL.indexOf("://",4);
//this finds the ending slash for the domain server
serverIndex=DocURL.indexOf("/",protocolIndex + 3);
//for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
//of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
BeginURL=DocURL.indexOf("#",1) + 1;
urlresult=DocURL.substring(BeginURL,serverIndex);
//for display, we need to skip after http://, and go to the next slash
displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
document.write('<A HREF="' + urlresult + '">' + displayresult + "</a>");
}
//-->
</SCRIPT>
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<TABLE cellSpacing=5 cellPadding=3 width=410>
<TBODY>
<TR>
<TD vAlign=center align=left width=360>
<H1 style="FONT: 13pt/15pt verdana; COLOR: #000000"><!--Problem-->The page
cannot be displayed</H1></TD></TR>
<TR>
<TD width=400 colSpan=2><FONT
style="FONT: 8pt/11pt verdana; COLOR: #000000">There is a problem with the
page you are trying to reach and it cannot be displayed.</FONT></TD></TR>
<TR>
<TD width=400 colSpan=2><FONT
style="FONT: 8pt/11pt verdana; COLOR: #000000">
<HR color=#c0c0c0 noShade>
<P>Please try the following:</P>
<UL>
<LI>Click the <A href="javascript:location.reload()">Refresh</A> button,
or try again later.<BR>
<LI>Open the
<SCRIPT>
<!--
if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
{
Homepage();
}
//-->
</SCRIPT>
home page, and then look for links to the information you want.
<LI>If you believe you should be able to view this directory or page,
please contact the Web site administrator by using the e-mail address or
phone number listed on the
<SCRIPT> Homepage();</SCRIPT>
home page. </LI></UL>
<H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">403 Forbidden - The ISA Server denies the specified Uniform Resource Locator (URL). (12202)<BR>Internet Security and Acceleration Server</H2>
</FONT></TD></TR></TBODY></TABLE></BODY></HTML>
但是我现在Lan里的proxy是Microsoft Internet Security and Acceleration Server 2000,
使用IE能正确浏览网页,但是
使用TIDHttp,TNMHttp都不能正确返回结果。
TIDHttp返回的错误:
403 Forbidden(The ISA Server denies the specified Uniform Resource Locator(URL).
TNMHttp返回的错误是:
Header:
HTTP/1.1 403 Forbidden ( The ISA Server denies the specified Uniform Resource Locator (URL). )
Via:1.1 ISA
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 3164
Body:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
<STYLE>A:link {
FONT: 8pt/11pt verdana; COLOR: #ff0000
}
A:visited {
FONT: 8pt/11pt verdana; COLOR: #4e4e4e
}
</STYLE>
<META content=NOINDEX name=ROBOTS>
<META http-equiv=Content-Type content="text-html; charset=Windows-1252">
<SCRIPT>
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL=document.URL;
//this is where the http or https will be, as found by searching for :// but skipping the res://
protocolIndex=DocURL.indexOf("://",4);
//this finds the ending slash for the domain server
serverIndex=DocURL.indexOf("/",protocolIndex + 3);
//for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
//of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
BeginURL=DocURL.indexOf("#",1) + 1;
urlresult=DocURL.substring(BeginURL,serverIndex);
//for display, we need to skip after http://, and go to the next slash
displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
document.write('<A HREF="' + urlresult + '">' + displayresult + "</a>");
}
//-->
</SCRIPT>
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<TABLE cellSpacing=5 cellPadding=3 width=410>
<TBODY>
<TR>
<TD vAlign=center align=left width=360>
<H1 style="FONT: 13pt/15pt verdana; COLOR: #000000"><!--Problem-->The page
cannot be displayed</H1></TD></TR>
<TR>
<TD width=400 colSpan=2><FONT
style="FONT: 8pt/11pt verdana; COLOR: #000000">There is a problem with the
page you are trying to reach and it cannot be displayed.</FONT></TD></TR>
<TR>
<TD width=400 colSpan=2><FONT
style="FONT: 8pt/11pt verdana; COLOR: #000000">
<HR color=#c0c0c0 noShade>
<P>Please try the following:</P>
<UL>
<LI>Click the <A href="javascript:location.reload()">Refresh</A> button,
or try again later.<BR>
<LI>Open the
<SCRIPT>
<!--
if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
{
Homepage();
}
//-->
</SCRIPT>
home page, and then look for links to the information you want.
<LI>If you believe you should be able to view this directory or page,
please contact the Web site administrator by using the e-mail address or
phone number listed on the
<SCRIPT> Homepage();</SCRIPT>
home page. </LI></UL>
<H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">403 Forbidden - The ISA Server denies the specified Uniform Resource Locator (URL). (12202)<BR>Internet Security and Acceleration Server</H2>
</FONT></TD></TR></TBODY></TABLE></BODY></HTML>