You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

[ |../../index.htm#lansa/l4wtgu10_0120.htm]
現在地:

11.4.3 Response プロパティ

HTTP 要求の応答ヘッダーと本文を指定します。
プロパティ・タイプ
XPRIM_HttpResponse

次の例は応答本文を文字列として読み込みます。
Define_Com Class(#XPRIM_HttpRequest) Name(#Request)
 
#Request.DoGet Url('http://...')
#TEXT := #Request.Response.AsString
The following example reads the X-TIMESTAMP header in the response sent by the server:
Define_Com Class(#XPRIM_HttpRequest) Name(#Request)
 
#Request.DoGet Url('http://...')
#TIMESTAMP := #Request.Response.GetHeaderValue('X-TIMESTAMP')
[ |../../index.htm#lansa/l4wtgu10_0120.htm]

  • No labels