Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

QtmhGetEnv returns no data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • QtmhGetEnv returns no data

    I am using QtmhGetEnv in an attempt read http header variables (environment variables). I have found several good examples on the web but when I attempt to run one I am getting no errors but also no data returned. I have run the job in debug and everything looks ok. Background: I am attempting to run this job from within the Lansa for the Web environment so maybe this is having some effect. Lansa provides no native way to access arbitrary http header variables. Are there any CGI programming guru's out there who know why this might be failing to work. The code for RPG program I am calling is as attached if that help....

  • #2
    QtmhGetEnv returns no data

    Paul, Don't know anything about Lansa, so I can't comment whether it has anything to do with it or not. However, your code look fine except the field size is kind of small for EnvRec (1K) and output parm pVarVal(256 bytes). You may have field truncation problem if the environment value is bigger than 256 bytes. Shawn

    Comment


    • #3
      QtmhGetEnv returns no data

      For anyone following this the answer is Lansa intercepts the CGI request with 1 program and then invokes another program via dataq which executes any program written in Lansa RDML, therefor it is impossible to get the environement variables.

      Comment

      Working...
      X