Project

General

Profile

Actions

Support #10951

open

Hangman FCGI POST request return empty when contain a path info

Added by Maurizio Agujari over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
09/16/2022
Due date:
% Done:

0%

Estimated time:

Description

I'm trying to run hangman example:
it works when compiled with wthttp
I have some problem with wtfcgi

The requests like these don't work. These return empty responses:
POST http://10.4.3.17/main.wt/play?wtd=njTGD4K5tmVMLpZF
POST http://10.4.3.17/main.wt/highscores

After I have modified ../wt-4.8.0/src/fcgi/FCGIStream.C, the application works.

virtual const char *envValue(const char *name) const override
{
  if ( strcmp (name,"PATH_INFO") == 0 )
    return nullptr;

  char *result = FCGX_GetParam(name, request_->envp);

  if (result)
    return result;
  else
    return nullptr;

}

I will have some problem with this solution ?

Best regards.

No data to display

Actions

Also available in: Atom PDF