[Zope] Zope Requests - POST vs. GET
fowlertrainer at anonym.hu
fowlertrainer at anonym.hu
Mon Dec 15 09:16:00 EST 2003
Hello Andreas,
Monday, December 15, 2003, 2:46:53 PM, you wrote:
AJ> --On Montag, 15. Dezember 2003 14:36 Uhr +0100 Tino Wildenhain
AJ> <tino at wildenhain.de> wrote:
>> Hi Andreas,
>>
>> Andreas Jung schrieb:
>>> This a single REQUEST is either a POST or GET request there is no need
>>> for this separation IMO. Everything's in the REQUEST.
>>
>> That's not entirely true. Sadly there is a design flaw in cgi.py
>> which ignores GET variables still present when doing POST.
>>
>> The whole lib is a bit ugly so its not easy to fix it.
>> And its even worser to fix if you want to achieve compatibility
>> with current implementations.
>>
>> Should variables be merget? Get variables before POST
>> or vice versa?
>>
AJ> big hmmmmmmm :-) I don't have the CGI specs under my pillow and I am too
AJ> lazy
AJ> to read them but POST usually transmits the data in the body and GET in the
AJ> QUERY
AJ> strings. I have never (and needed) a usecase where both were mixed (if
AJ> allowed).
AJ> -aj
I want to mix them before, but I see the chance to replace my code
with virtual urls.
(url?thissite -> url/thissite)
But how ?
I want to do this:
My site has only 1 control file. This named index_html.
I want to all of the requests are redirected to this file.
Pseudo:
If url is not base_url:
delete base_url from url
set my variable to url
traversedobject: index_html
In index html I process the datas, and others.
I create a test script to the main/root folder:
# access_rule
from string import split
rq = container.REQUEST
urllist = split(rq.HTTP_URL, '/')
if (len(urllist)>1):
urlold=urllist
rq.set("BHAPath",urlold)
RequestTraversalNamePath=[rq.SERVER_URL]
I set rule, but it is nothing happened.
What I doing wrong ???
Thanx for any advance:
KK
--
Best regards,
fowlertrainer mailto:fowlertrainer at anonym.hu
More information about the Zope
mailing list