I'm trying to retrieve the page www.bookpool.com, but I receive the
following html page:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A
HREF=HTTP://www.bookpool.com/.x/kz8ti3n4jr/ho>here</A>.<P>
</BODY></HTML>

I'm applying the method setFollowRedirects to the HttpURLConnection class
(con.setFollowRedirects(true);), and I thought this method sets whether
HTTP redirects (requests with response code 3xx) should be automatically
followed by this class.

Could somebody help me how to solve this problem ?

Thanks,

Claudine


On Wed, 19 Apr 2000, Mojahedul Hoque Abul Hasanat wrote:

> On Mon, Apr 17, 2000 at 11:00:11AM -0300, Claudine Santos Badue wrote:
> > Mojahed,
> >
> > I'm trying to search a Brazilian site called CyberCook. But the site
> > return me just the main page and not the expected response.
> >
>
> This site uses cookies.  There is rudimentary support for cookies
> in Announcer.java, but it is not enough.
>
> I will update the cookie handling proecudre soon.
>
> --
> Mojahed
>

***********************************************************************
*                       CLAUDINE SANTOS BADUE                         *
*                                                                     *
*                   Msc. Student - Computer Science                   *
* Laboratory for Treating Information (http://www.dcc.ufmg.br/latin/) *
*                         DCC - UFMG - Brazil                         *
***********************************************************************
* "For God so loved the world that He gave His one and only Son,      *
*  that whoever believes in Him shall not perish but have             *
*  eternal life" (John 3:16)                                          *
*                                                                     *
*  "Jesus answered: I am the way and the truth and the life.          *
*  No one comes to the Father except through me" (John 14:6)          *
***********************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to