Closed yimingxsy closed 1 year ago
Hello yimingxsy,
I apologize for responding in English based on an automated translation.
The CGIC library is designed for the classic CGI specification as it has existed for many years. This specification does not involve multithreading. Each HTTP request from the browser to a URL powered by CGI spawns a completely new process, which is responsible for reading form data from standard input and producing a valid response on standard output.
I would generally not use CGIC for new projects except perhaps in very resource-constrained environments. In most cases it would be wiser to use a modern server side framework, like Laravel (for PHP), Ruby on Rails, Sinatra (also for Ruby and more lightweight), Django (for Python), or Rocket (for Rust).
感谢答复!我能否再问个问题:cgic库中存在Cookie数据的相关设置(但Cookie存在一定的局限),那么在cgic库中有没有Token数据的相关设置呢?或者说,在boa服务器上怎么方便地进行客户端用户的身份验证(是否有相应的API接口)?
The following are the results of machine translation of Chinese. Thanks for your reply! Can I ask another question: There are related settings for Cookie data in cgic library (but cookies have certain limitations), so are there related settings for Token data in cgic library? Or, how to easily authenticate the client user on the Boa server (are there the corresponding APIs)?
CGIC has no functions relating specifically to tokens. (It looks like Boa was discontinued in 2005. I'm guessing you are in a legacy support situation.)
On Thu, Jul 27, 2023 at 11:44 AM yimingxsy @.***> wrote:
感谢答复!我能否再问个问题:cgic库中存在Cookie数据的相关设置(Cookie存在一定的局限),那么有没有Token数据的相关设置呢?或者说,在boa服务器上怎么方便地进行用户的身份验证(是否有相应的API接口)?
— Reply to this email directly, view it on GitHub https://github.com/boutell/cgic/issues/23#issuecomment-1653878248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH27OOHB77P4RRJ7MXPUDXSKED7ANCNFSM6AAAAAA2UNLSJI . You are receiving this because you modified the open/close state.Message ID: @.***>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his
请问cgi中怎么处理多线程的问题?如果在一个cgi接口中使用多线程,那么怎么处理数据传递给web浏览器?还是只能通过前端定时调用该cgi接口获取当前时间的数据?