× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.





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
Sr Programmer/Engineer
Jack Onofrio Dog Shows, LLC
405.427.8181



From: "B Stone" <bvstone@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxxxxxxxx>
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
www.bvstools.com
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
list
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 ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.