[Cppcms-users] script_name and path_info
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2016-04-14 07:51:16
|
Hi! I am not quite sure this question is a generic one or specific to CppCMS, HTTP servers, or fastcgi. Being a lazy man, I simply resort to CppCMS community as the short cut. I have carefully read this article before raising this question: http://cppcms.com/wikipp/en/page/cppcms_1x_tut_url_mapping What still unclear to me is what will the respective script_name and path_info be when a client might request for the following possible URL's: /hello/number/10/ /hello/number/10 hello/number/10/ hello/number/10 Will the leading and trailing slashes be trimmed off or integrally preserved? Will a leading slash be automatically prepended to script_name? I think clarification of its behavior is crucial if we want to correctly catch or ignore requests when calling cppcms::mount_point(), cppcms::url_dispatcher::assign(), cppcms::application::attach(), cppcms::application::add(),.. etc. Best regards, CN -- http://www.fastmail.com - The professional email service |