Overview : Get방식이 아닌 Data 를 Post 로 Redirect
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
<% :: 중략 :: HttpPath="http://test.co.kr/Test/No_Update.aspx?" '------------------------------------------------------------------- Dim lResolve Dim lConnect Dim lSend Dim lReceive Dim sParams sParams ="ID="& ID & _ "&No="& No & _ "&Pax="& Pax & _ "&Date="& Date 'response.write sSend 'response.end Set XMLhttp = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0") lResolve = 60 * 1000 'Timeout values are in milli-seconds lConnect = 60 * 1000 lSend = 60 * 1000 lReceive = 60 * 1000 XMLhttp.setTimeouts lResolve, lConnect, lSend, lReceive 'XMLhttp.open "GET",HttpPath, False '------------------------------------------------------------------ 'XMLhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'XMLhttp.Send sSend XMLhttp.open "POST", HttpPath & sParams, False XMLhttp.Send Dim sResponse sResponse = XMLhttp.responseText 'response.write HttpPath & sParams %> <form name="Input" id="Input" method="Post"> <input type="hidden" name="sltSearch" value="ID"><br/> <input type="hidden" name="Search" value="<%=ID%>"><br/> <input type="hidden" name="ID" value="<%=ID%>"><br/> <input type="hidden" name="No" value="<%=No%>"><br/> <input type="hidden" name="Pax" value="<%=Pax%>"><br/> <input type="hidden" name="Date" value="<%=Date%>"><br/> </form> <SCRIPT LANGUAGE="JavaScript"> <!-- Input.action="ListUpdate.asp?page=<%=page%>"; Input.target="_self"; Input.submit(); //--> </SCRIPT> |