You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Ingo Brunberg <ib...@fiz-chemie.de> on 2004/07/01 09:18:08 UTC
Re: Slide WebDAV Client API - Redirection
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 <lu...@apache.org>
> >Reply-To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
> >To: Slide Users Mailing List <sl...@jakarta.apache.org>
> >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
> ><sl...@jakarta.apache.org>; 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
> ><sl...@jakarta.apache.org>; 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
> ><sl...@jakarta.apache.org>; Wed, 30 Jun 2004 10:41:15 +0200 (MEST)
> >X-Message-Info: JGTYoYF78jGOv+u0kegufn2RoJ5JhyeC
> >Mailing-List: contact slide-user-help@jakarta.apache.org; run by ezmlm
> >Precedence: bulk
> >List-Unsubscribe: <ma...@jakarta.apache.org>
> >List-Subscribe: <ma...@jakarta.apache.org>
> >List-Help: <ma...@jakarta.apache.org>
> >List-Post: <ma...@jakarta.apache.org>
> >List-Id: "Slide Users Mailing List" <slide-user.jakarta.apache.org>
> >Delivered-To: mailing list slide-user@jakarta.apache.org
> >X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=FORGED_RCVD_HELO
> >X-Spam-Check-By: apache.org
> >Message-ID: <40...@apache.org>
> >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: <Se...@hotmail.com>
> >X-Virus-Scanned: by amavisd-new at hu-berlin.de
> >X-Virus-Checked: Checked
> >Return-Path: slide-user-return-7104-gucolon=hotmail.com@jakarta.apache.org
> >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: slide-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Slide WebDAV Client API - Redirection
Posted by Stefan Lützkendorf <lu...@apache.org>.
I have added some support for redirects to WebdavResource. But this will
not resolve the problem with redirecting between different servers.
Regards, Stefan
Ingo Brunberg wrote:
> 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 <lu...@apache.org>
>>>Reply-To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
>>>To: Slide Users Mailing List <sl...@jakarta.apache.org>
>>>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
>>><sl...@jakarta.apache.org>; 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
>>><sl...@jakarta.apache.org>; 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
>>><sl...@jakarta.apache.org>; Wed, 30 Jun 2004 10:41:15 +0200 (MEST)
>>>X-Message-Info: JGTYoYF78jGOv+u0kegufn2RoJ5JhyeC
>>>Mailing-List: contact slide-user-help@jakarta.apache.org; run by ezmlm
>>>Precedence: bulk
>>>List-Unsubscribe: <ma...@jakarta.apache.org>
>>>List-Subscribe: <ma...@jakarta.apache.org>
>>>List-Help: <ma...@jakarta.apache.org>
>>>List-Post: <ma...@jakarta.apache.org>
>>>List-Id: "Slide Users Mailing List" <slide-user.jakarta.apache.org>
>>>Delivered-To: mailing list slide-user@jakarta.apache.org
>>>X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=FORGED_RCVD_HELO
>>>X-Spam-Check-By: apache.org
>>>Message-ID: <40...@apache.org>
>>>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: <Se...@hotmail.com>
>>>X-Virus-Scanned: by amavisd-new at hu-berlin.de
>>>X-Virus-Checked: Checked
>>>Return-Path: slide-user-return-7104-gucolon=hotmail.com@jakarta.apache.org
>>>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: slide-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>>
>>
>>_________________________________________________________________
>>Tired of spam? Get advanced junk mail protection with MSN 8.
>>http://join.msn.com/?page=features/junkmail
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org