× 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.



I'm looking for a way to determine the surfer's language to present
contents in this language.

I know that browsers are sending e.g.

accept-language:en

in their header.

The environment variable "HTTP_ACCEPT_LANGUAGE" seems to hold this
information, but it says at
http://publib.boulder.ibm.com/html/as400/v5r1/ic2924/index.htm?info/rzaie/rzaienonsslev.htm
that this info is only available via Server API.

I've read the .pdf "HTTP Server for iSeries Web Programming Guide (GC41-5435)"
http://publib.boulder.ibm.com/html/as400/v5r1/ic2924/info/rzaie/rzag3mst.pdf#API
and don't know whether that's a good idea.

Did anybody something similar?
In RPG?
Is this environment variable (or even better: all variables) available via
other means?

We are at V4R5 and use the original HTTP server.

Thanks in advance for your 0.02 of whatever currency! :-)


best regards /  Mit freundlichen Grüssen

Anton Gombkötö
Avenum Technologie GmbH

http://www.avenum.com



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.