2009-11-09 4 views

답변

10

나는 아래의 이유로 XmlHttp 이상 ServerXMLHTTP을 건의 할 것입니다 :

XMLHTTP 클라이언트 을 위해 설계되었습니다 응용 프로그램 및 URL에 의존 월, 은 Microsoft Win32 인터넷 (WinInet)을 기반으로합니다. ServerXMLHTTP는 서버 응용 프로그램 용으로 설계된 이고 은 새 HTTP 클라이언트 스택 WinHTTP를 사용합니다. ServerXMLHTTP는 안정성과 보안을 제공하며 서버 안전 입니다.

http://support.microsoft.com/kb/290761

예 : POST 요청을 리디렉션하려는 경우

DataToSend = "id=1" 
    dim xmlhttp 
    set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP") 
    xmlhttp.Open "POST","http://localhost/Receiver.asp",false 
    xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 
    xmlhttp.send DataToSend 
    Set xmlhttp = nothing 
2

이 시도 :

Set xmlhttp = Server.CreateObject("Microsoft.ServerXMLHTTP") 
xmlhttp.Open "POST", "http://yoursite", false 
xmlhttp.Send data 

Response.Write xmlhttp.ResponseText 
+0

ASP에서 XMLHTTP를 사용하지 마십시오, ServerXMLHTTP의를 사용 @Jakkwylde가 지적한대로. – AnthonyWJones

+0

fixed, ty Anthony –

+0

콘텐츠 유형을 추가하지 않고도 대부분의 소식은 유효한 요청으로 승인되지 않습니다. – BradLaney

0

, 당신이 사용할 수있는 Server.Transfer를

관련 문제