[Zope] Why don't work?
bruno modulix
bruno at modulix.org
Wed Jul 6 05:26:34 EDT 2005
Garito wrote:
> Andreas Jung escribió:
>
>>
>>
>> --On 6. Juli 2005 10:29:45 +0200 Garito <garito at sistes.net> wrote:
>>
>>>
>>> My question is why If I push Eliminar button don't submit the form to
>>> the
>>> correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?
>>>
>>
>> What happens instead? Look at your Z2.log to figure out what is
>> requested.
>>
>> -aj
>
>
> Hi Aj!
> this is the Z2.log modification after submit the form
>
> *192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "POST
> /Papeles/Yanged/Links/Eliminar/ HTTP/1.1" 302
-> 10.3.3 302 Found
The requested resource resides temporarily under a different URI. Since
the redirection might be altered on occasion, the client SHOULD continue
to use the Request-URI for future requests. This response is only
cacheable if indicated by a Cache-Control or Expires header field.
The temporary URI SHOULD be given by the Location field in the response.
Unless the request method was HEAD, the entity of the response SHOULD
contain a short hypertext note with a hyperlink to the new URI(s).
If the 302 status code is received in response to a request other than
GET or HEAD, the user agent MUST NOT automatically redirect the request
unless it can be confirmed by the user, since this might change the
conditions under which the request was issued.
Note: RFC 1945 and RFC 2068 specify that the client is not allowed
to change the method on the redirected request. However, most
existing user agent implementations treat 302 as if it were a 303
response, performing a GET on the Location field-value regardless
of the original request method. The status codes 303 and 307 have
been added for servers that wish to make unambiguously clear which
kind of reaction is expected of the client.
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)
> 383
> "http://yanged:8280/Papeles/Yanged/Links/Ver" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
> 192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "GET
> /Papeles/Yanged/Links/Ver HTTP/1.1" 200 3434
Your POST request seems to be transformed into a GET to another url...
Now *why* this happens, I can't tell you...
--
Bruno Desthuilliers
Développeur
bruno at modulix.org
More information about the Zope
mailing list