The only thing I'd know to check is the version. There were some issues in
earlier versions that were resolved later. I've fixed a few issues that
way. I've seen several installs that once worked never were updated.
Joe W Holt
Jack Onofrio Dog Shows, LLC
From: "B Stone" <bvstone@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
Date: 03/14/2020 11:23 AM
Subject: [WEB400] CGIDEV2 Environment Variable Max Length
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>
I am working with an application that needs to read a JWT from the request
URI. The client has CGIDEV2 installed so I'm using that.
The issue is that using getenv() to get the REQUEST_URI environment
variable the data length is 566 bytes, but for some reason getenv() is only
returning the first 560 bytes.
I debugged the getenv() function which calls QtmhGetEnv and it is
returning the proper length value of 566, but it seems the actual text
length returned to the receiver value holder is 560, not 566.
I checked the variables being used and they are 32k. The available size
sent into the API is also correct at 32k. But for some reason it's only
returning 560 bytes (and it knows there are more... hehe)
I've tried with Chrome and Firefox. Same thing.
I just don't know where else the limitation would be except maybe the
QtmhGetEnv API itself, but I see nothing in the docs saying that it's
limited to 560 bytes.
Would be interested in hearing any ideas on where else to look.
Personally, I think sending that much data in the URI isn't good practice
(a POST would be better) but trying to deal with some of these folks on
other ends think they know it all. :)
Bradley V. Stone
MAILTOOL Benefit #14 <https://www.bvstools.com/mailtool.html
>: The ability
to use Configuration Files at the system, User, or individual email Level.
This means that should any of the settings (such as your password) is
changed you only need to update it in the configuration file that is used.
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,
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.