From: Suren K <suren7437@xxxxxxxxx><web400@xxxxxxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
Date: 03/31/2020 09:29 AMa
Subject: [EXTERNAL] [WEB400] Reg: Header Parameters in IWS
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>
I am stuck with Header Parameter value retrieval using IWS. It would be
great help if some one provide me some lights to proceed further.(e.g.
As per the IWS manual "HTTP headers indicates what transport headers
HTTP headers) to pass to the web servicevariables.
implementation code. Transport headers are passed as environment
The environment variablewith
name for HTTP headers is made up of the specified HTTP header prefixed
HTTP_, all upper-cased.service
For example, if Content-type is specified, then the environment variable
name would be
HTTP_CONTENT-TYPE. If an HTTP header was not passed in on the web
request, the environment123456789)
variable value will be set to the null string."
So I created a new HTTP Header in the IWS Step 7 (Specify Transport
Information to be Passed) as HTTP_X-REQUEST-ID
I am passing the header parameter from client as (X-Request-Id =
So here my assumption is, an Environment Variable will be created with
HTTP_X-REQUEST-ID with value as 123456789. When try to fetch theNULL.
Environment variable value in my RPG program i am getting the value as
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.