Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

11.4.3 Response プロパティ

HTTP 要求の応答ヘッダーと本文を指定します。

プロパティ・タイプ

&<a href="l4wtgu10_0130.htm"&>XPRIM_HttpResponse&</a&>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')