[Gambas-user] gb.web Request.Path
Benoît Minisini
benoit.minisini at gambas-basic.org
Tue Sep 26 20:04:03 CEST 2023
Le 26/09/2023 à 19:22, Mayost Sharon a écrit :
> Hello
>
> Should Request.Path perform an action when you put a value in it?
>
> For example:
> In the browser I write:
> http://127.0.0.1/cgi-bin/wp1.gambas/
>
> Then inside the code in the MAIN() procedure
> I am writing:
> Request.Path="/Webpage1"
> Should this change the text in the browser to
> http://127.0.0.1/cgi-bin/wp1.gambas/Webpage1
>
> Thanks
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
Of course not. Request.Path is a server thing (it's stored in the memory
of the server), not a client thing.
You must learn the HTTP protocol if you want to correctly deal with web
applications.
The URL displayed by the browser is controled by the browser. You can
change it indirectly by using javascript in the browser.
If you want the server to ask the browser to move to another URL, you
must use an "HTTP redirection", which has its own rules. See the
Response.Redirect() method.
Regards,
--
Benoît Minisini.
More information about the User
mailing list