박준성 :: 20260428 :: new contact용 정보조회 :: return 양식 변경 및 cors 해제
This commit is contained in:
@@ -1,4 +1,18 @@
|
|||||||
<!-- #include virtual = "lib/config.asp" -->
|
<!-- #include virtual = "lib/config.asp" -->
|
||||||
|
<%
|
||||||
|
Response.Buffer = True
|
||||||
|
|
||||||
|
Response.AddHeader "Access-Control-Allow-Origin", "*"
|
||||||
|
Response.AddHeader "Access-Control-Allow-Methods", "*"
|
||||||
|
Response.AddHeader "Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With"
|
||||||
|
Response.AddHeader "Access-Control-Max-Age", "86400"
|
||||||
|
|
||||||
|
If Request.ServerVariables("REQUEST_METHOD") = "OPTIONS" Then
|
||||||
|
Response.Status = "200 OK"
|
||||||
|
Response.Write ""
|
||||||
|
Response.End
|
||||||
|
End If
|
||||||
|
%>
|
||||||
<%
|
<%
|
||||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||||
@@ -12,22 +26,24 @@
|
|||||||
|
|
||||||
adoRs.open query, adoconn, 1,1
|
adoRs.open query, adoconn, 1,1
|
||||||
IF Not adoRs.EOF Then
|
IF Not adoRs.EOF Then
|
||||||
returnString = returnString & "{" & VbCrlf
|
returnString = "{"
|
||||||
returnString = returnString & "'client_id':'" & adoRs("client_id") & "'," & VbCrlf
|
returnString = returnString & """clientId"":""" & adoRs("client_id") & ""","
|
||||||
returnString = returnString & " 'internal_no':'" & adoRs("internal_no") & "'," & VbCrlf
|
returnString = returnString & """internalNo"":""" & adoRs("internal_no") & ""","
|
||||||
returnString = returnString & " 'external_no':'" & adoRs("external_no") & "'," & VbCrlf
|
returnString = returnString & """externalNo"":""" & adoRs("external_no") & ""","
|
||||||
returnString = returnString & " 'client_ip':'" & adoRs("client_ip") & "'" & VbCrlf
|
returnString = returnString & """clientIp"":""" & adoRs("client_ip") & """"
|
||||||
returnString = returnString & "}" & VbCrlf
|
returnString = returnString & "}"
|
||||||
ELSE
|
ELSE
|
||||||
returnString = returnString & "{" & VbCrlf
|
returnString = "{"
|
||||||
returnString = returnString & "'client_id':''," & VbCrlf
|
returnString = returnString & """clientId"":"""","
|
||||||
returnString = returnString & " 'internal_no':''," & VbCrlf
|
returnString = returnString & """internalNo"":"""","
|
||||||
returnString = returnString & " 'external_no':''," & VbCrlf
|
returnString = returnString & """externalNo"":"""","
|
||||||
returnString = returnString & " 'client_ip':''" & VbCrlf
|
returnString = returnString & """clientIp"":"""""
|
||||||
returnString = returnString & "}" & VbCrlf
|
returnString = returnString & "}"
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
response.write returnString
|
Response.ContentType = "application/json"
|
||||||
|
Response.Charset = "utf-8"
|
||||||
|
Response.write returnString
|
||||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||||
%>
|
%>
|
||||||
Reference in New Issue
Block a user