This article should help. I ran into this issue a while back and put this
together... there is some apache/config needed. There is also a link to a
Stack Overflow article that goes deeper.

Bradley V. Stone
MAILTOOL Benefit #9 <https://www.bvstools.com/mailtool.html>: Superior
debugging (when using MAILTOOL Plus) - Bypassing the IBM SMTP server means
that we can fully debug and track down sometimes hard to find problems.
Even the Trace TCP/IP Application (TRCTCPAPP) command won't be this

On Tue, Mar 31, 2020 at 9:29 AM Suren K <suren7437@xxxxxxxxx> wrote:

Hi All,

I am stuck with Header Parameter value retrieval using IWS. It would be a
great help if some one provide me some lights to proceed further.

As per the IWS manual "HTTP headers indicates what transport headers (e.g.
HTTP headers) to pass to the web service
implementation code. Transport headers are passed as environment variables.
The environment variable
name for HTTP headers is made up of the specified HTTP header prefixed with
HTTP_, all upper-cased.
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 service
request, the environment
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 = 123456789)

So here my assumption is, an Environment Variable will be created with name
HTTP_X-REQUEST-ID with value as 123456789. When try to fetch the
Environment variable value in my RPG program i am getting the value as

Am i missing something in this? Or any PTF's needs to be applied to support
this? My iSeries version is V7R3.

Could you please let me know your comments on this one?

Surender K
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.