Option Explicit
Dim data, httpRequest, postResponse
data = "var1=somevalue"
data = data & "&var2=someothervalue"
data = data & "&var3=someothervalue"
Set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP")
httpRequest.Open "POST", "http://www.example.com/handle.asp", False
httpRequest.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
httpRequest.Send data
postResponse = httpRequest.ResponseText
Response.Write postResponse ' or do something else with it
|
출처 : http://stackoverflow.com/questions/5300906/how-to-send-and-handle-http-post-in-asp
'웹프로그래밍 > ASP' 카테고리의 다른 글
[ ASP ] Dim 변수만 사용하도록 설정 (0) | 2019.11.13 |
---|---|
[ ASP ] 쿼리 결과 배열에 복사해서 사용 / GetRows() (0) | 2019.11.13 |
[ ASP ] ASP JSON / ASP JSON 출력 / ASP JSON 생성 (0) | 2015.08.21 |
[ ASP ] ASP EXCEL 불러오기 / ASP EXCEL PARSING / ASP 엑셀 읽어오기 (0) | 2014.09.19 |