From c-dev-return-21610-apmail-axis-c-dev-archive=axis.apache.org@axis.apache.org Sat Apr 03 05:25:54 2010 Return-Path: Delivered-To: apmail-axis-c-dev-archive@www.apache.org Received: (qmail 41145 invoked from network); 3 Apr 2010 05:25:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Apr 2010 05:25:54 -0000 Received: (qmail 26523 invoked by uid 500); 3 Apr 2010 05:25:54 -0000 Delivered-To: apmail-axis-c-dev-archive@axis.apache.org Received: (qmail 26334 invoked by uid 500); 3 Apr 2010 05:25:51 -0000 Mailing-List: contact c-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list c-dev@axis.apache.org Received: (qmail 26326 invoked by uid 99); 3 Apr 2010 05:25:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Apr 2010 05:25:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Apr 2010 05:25:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 51B29234C1EF for ; Sat, 3 Apr 2010 05:25:27 +0000 (UTC) Message-ID: <1041562218.671821270272327321.JavaMail.jira@brutus.apache.org> Date: Sat, 3 Apr 2010 05:25:27 +0000 (UTC) From: "nadir amra (JIRA)" To: c-dev@axis.apache.org Subject: [jira] Closed: (AXISCPP-1068) Support http redirects In-Reply-To: <1433754407.671641270270407140.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXISCPP-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] nadir amra closed AXISCPP-1068. ------------------------------- Resolution: Fixed Fix Version/s: current (nightly) Basically I added support so automatic redirect can be done seamlessly. The original implementation would throw a transport exception, but a client user would not know that a redirect occurs. I created a new exception code (SERVER_TRANSPORT_REDIRECT_RECEIVED) to indicate redirect. And in the exception data, I put the redirect location so a client can choose to handle it manually by getting the location URI from the exception. I enhanced the transport so that it now supports the following properties (located in include/axis/GDefine.hpp): ENABLE_AUTOMATIC_REDIRECT - possible values: "true" or "false". Default is false. MAX_AUTOMATIC_REDIRECT - integer number in string format indicating how many redirects to follow. Default is 1. If "0" is specified it is equivalent to specifying "false" for ENABLE_AUTOMATIC_REDIRECT. So users can use the Call object to set the above properties. If automatic redirect is enabled, automatic redirect will only happen if redirecting from http:// to http:// or https:// to https://. Anything else will result in automatic redirect not being done (exception thrown as if ENABLE_AUTOMATIC_REDIRECT was set to false). The changes have been made under the following revision: http://svn.apache.org/viewvc?view=revision&revision=930475 > Support http redirects > ---------------------- > > Key: AXISCPP-1068 > URL: https://issues.apache.org/jira/browse/AXISCPP-1068 > Project: Axis-C++ > Issue Type: New Feature > Reporter: nadir amra > Fix For: current (nightly) > > > Add support for http redirect. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org For additional commands, e-mail: c-dev-help@axis.apache.org