** Branch linked: lp:~zorba-coders/zorba/bug-955574
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
http-client "hangs" if following a POST request
Status in Zorba - The XQuery Processor:
Making the following request to a resource that sends a 301 or 302
redirect doesn't terminate.
<http:request href="http://some-ressource" method="POST"
<http:header name="Content-Length" value="4"/>
The reason is that the http-client tells curl to follow the redirect.
In turn, curl issues a GET request with the Content-Length header set
to the size of the payload of the original POST request. However, the
response doesn't come back because no data is sent with the redirected
A suggested solution is to raise an error if one tries to follow POST,
PUT, or DELETE requests. The semantic of doing this is not clear and
it's up to the user what to do. For example, the user might want to
follow-up using a GET request or with another POST containing the same
data. Raising an error allows the user of the http-client to do
whatever is required.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~zorba-coders
Post to : email@example.com
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp