If I remember correctly cross host redirects are not supported by the 2.0 version of Httpclient that Slide is still using. I believe support for that was added in the 3.0 version which is still in alpha stage.
Ingo > I'm trying to write a javamail driver for Hotmail > which is basically a webDAV Resource > > The first URL is : http://services.msn.com/svcs/hotmail/httpmail.asp > > Then it redirects you to http://oe.hotmail.com/cgi-bin/hmdata, then to > passport.net > > I have a small problem, since I couldn't get slide working I went in > manually with httpclient, but when I get redirected I get the following: > > Jun 30, 2004 1:29:16 PM org.apache.commons.httpclient.HttpMethodBase > checkValidRedirect > WARNING: Error getting URI host > org.apache.commons.httpclient.HttpException: Redirect from host > services.msn.com to oe.hotmail.com is not supported > at > org.apache.commons.httpclient.HttpMethodBase.checkValidRedirect(HttpMethodBase.java:1243) > at > org.apache.commons.httpclient.HttpMethodBase.processRedirectResponse(HttpMethodBase.java:1191) > at > org.apache.commons.httpclient.HttpMethodBase.isRetryNeeded(HttpMethodBase.java:977) > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1095) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:674) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529) > at HotmailTest.main(HotmailTest.java:32) > Jun 30, 2004 1:29:17 PM org.apache.commons.httpclient.HttpMethodBase > processRedirectResponse > WARNING: Invalid Redirect URI from: > http://services.msn.com:80/svcs/hotmail/httpmail.asp to: > http://oe.hotmail.com/cgi-bin/hmdata > [ | | ] > > > >From: Stefan L�tzkendorf <[EMAIL PROTECTED]> > >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]> > >To: Slide Users Mailing List <[EMAIL PROTECTED]> > >Subject: Re: Slide WebDAV Client API - Redirection > >Date: Wed, 30 Jun 2004 10:41:16 +0200 > >MIME-Version: 1.0 > >Received: from mail.apache.org ([209.237.227.199]) by mc6-f33.hotmail.com > >with Microsoft SMTPSVC(5.0.2195.6713); Wed, 30 Jun 2004 01:42:41 -0700 > >Received: (qmail 37987 invoked by uid 500); 30 Jun 2004 08:43:05 -0000 > >Received: (qmail 37915 invoked by uid 99); 30 Jun 2004 08:43:04 -0000 > >Received: from [141.20.1.28] (HELO nsuncom2.rz.hu-berlin.de) (141.20.1.28) > >by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 30 Jun 2004 01:43:03 -0700 > >Received: from localhost (nsuncom.rz.hu-berlin.de [141.20.1.7])by > >nsuncom2.rz.hu-berlin.de (8.12.11/8.12.11) with ESMTP id i5U8gHIg010331for > ><[EMAIL PROTECTED]>; Wed, 30 Jun 2004 10:42:17 +0200 (MEST) > >Received: from nsuncom.rz.hu-berlin.de ([127.0.0.1]) by localhost (nsuncom > >[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03777-07-7 for > ><[EMAIL PROTECTED]>; Wed, 30 Jun 2004 10:42:13 +0200 (MEST) > >Received: from apache.org (note2.itaw.hu-berlin.de [141.20.129.241])by > >nsuncom.rz.hu-berlin.de (8.12.10/8.12.10) with ESMTP id i5U8fFVS004376for > ><[EMAIL PROTECTED]>; Wed, 30 Jun 2004 10:41:15 +0200 (MEST) > >X-Message-Info: JGTYoYF78jGOv+u0kegufn2RoJ5JhyeC > >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > >Precedence: bulk > >List-Unsubscribe: <mailto:[EMAIL PROTECTED]> > >List-Subscribe: <mailto:[EMAIL PROTECTED]> > >List-Help: <mailto:[EMAIL PROTECTED]> > >List-Post: <mailto:[EMAIL PROTECTED]> > >List-Id: "Slide Users Mailing List" <slide-user.jakarta.apache.org> > >Delivered-To: mailing list [EMAIL PROTECTED] > >X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=FORGED_RCVD_HELO > >X-Spam-Check-By: apache.org > >Message-ID: <[EMAIL PROTECTED]> > >User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) > >Gecko/20030208 Netscape/7.02 > >X-Accept-Language: en-us, en > >References: <[EMAIL PROTECTED]> > >X-Virus-Scanned: by amavisd-new at hu-berlin.de > >X-Virus-Checked: Checked > >Return-Path: [EMAIL PROTECTED] > >X-OriginalArrivalTime: 30 Jun 2004 08:42:41.0275 (UTC) > >FILETIME=[347D8CB0:01C45E7E] > > > >Can you shortly describe in what cases you are redirected? > >Stefan > > > >Guillermo J. Col�n wrote: > >>But then how do I access the DAV resource??? > >> > >>Unfortunately, WebdavResource is not (yet) calling > >>setFollowRedirects(). So (for now) you'd have to exceute the method > >>manually. > >> > >>Ingo > >> > >>>How do I relate this with the creation of the WebDAV resource?? > >>> > >>> > >>>use > >>>HttpMethod method = ...; > >>>method.setFollowRedirects(true); > >>> > >>>Regards, Stefan > >>> > >>>Guillermo J. Col�n wrote: > >>> How can enable redirection in my app using the slide client API? > >>>(if the address I open redirects me some where else I want to follow it) > >>> > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
