hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Knights" <br...@knightsofthenet.com>
Subject Re: Bad cookie header: illegal domain attribute
Date Fri, 29 Nov 2002 22:08:16 GMT
your cookie won't work.

your server is test.ecp.toyota.ca
The most general server string you can set is .ecp.toyota.ca

HTH
----- Original Message -----
From: "Mike Bowler" <mbowler@GargoyleSoftware.com>
To: "Commons HttpClient Project"
<commons-httpclient-dev@jakarta.apache.org>
Sent: Friday, November 29, 2002 1:41 PM
Subject: Re: Bad cookie header: illegal domain attribute


> Hi Oleg,
>
> > What's the URL you are hitting? I need to be able to reproduce
> > the problem at my system
>
>
> Unfortunately, the url is behind a firewall.  The best I can give
you is
> the tcp dump of the transaction.  Don't be fooled by the
"User-Agent:
> Mozilla", this really is commons-httpclient doing the call.  I'm
running
> the lastest code.
>
> GET /ecp/index.html HTTP/1.1
> Host: test.ecp.toyota.ca:9081
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
>
> HTTP/1.0 401 Authorization Required
> Date: Fri, 29 Nov 2002 21:34:32 GMT
> Server: Apache/1.3.20 (Unix) mod_jk
> WWW-authenticate: basic realm="ecp [16:34:32:6043]"
> Set-Cookie: SMCHALLENGE=YES; path=/; domain=.toyota.ca
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <HTML><HEAD>
> <TITLE>401 Authorization Required</TITLE>
> </HEAD><BODY>
> <H1>Authorization Required</H1>
> This server could not verify that you
> are authorized to access the document
> requested.  Either you supplied the wrong
> credentials (e.g., bad password), or your
> browser doesn't understand how to supply
> the credentials required.<P>
> <HR>
> <ADDRESS>Apache/1.3.20 Server at test.ecp.toyota.ca Port
9081</ADDRESS>
> </BODY></HTML>
>
>
> Oleg Kalnichevski wrote:
>
> >Mike
> >What's the URL you are hitting? I need to be able to reproduce the
> >problem at my system
> >Oleg
> >
> >
> >On Fri, 2002-11-29 at 22:03, Mike Bowler wrote:
> >
> >
> >>With the latest cookie patch that was checked in this afternoon, I
am
> >>still getting an exception when trying to parse cookies.
> >>
> >>     [java] INFO: Cookie rejected: "SMCHALLENGE=YES; path=/;
> >>domain=.toyota.ca". Bad cookie header: illegal domain attribute
".toyota.ca"
> >>     [java] Nov 29, 2002 3:29:27 PM
> >>org.apache.commons.httpclient.HttpMethodBase
processResponseHeaders
> >>     [java] org.apache.commons.httpclient.HttpException: Bad
cookie
> >>header: illegal domain attribute ".toyota.ca"
> >>     [java]     at
>
>>org.apache.commons.httpclient.Cookie.validateDomainAttribVer1(Cookie
.java:1057)
> >>     [java]     at
> >>org.apache.commons.httpclient.Cookie.validate(Cookie.java:996)
> >>     [java]     at
> >>org.apache.commons.httpclient.Cookie.parse(Cookie.java:940)
> >>     [java]     at
>
>>org.apache.commons.httpclient.HttpMethodBase.processResponseHeaders(
HttpMethodBase.java:1445)
> >>     [java]     at
>
>>org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethod
Base.java:1530)
> >>     [java]     at
>
>>org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMeth
odBase.java:2182)
> >>     [java]     at
>
>>org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.
java:820)
> >>     [java]     at
>
>>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.ja
va:455)
> >>     [java]     at
>
>>com.gargoylesoftware.htmlunit.WebConnection.getResponse(WebConnectio
n.java:95)
> >>     [java]     at
>
>>com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.ja
va:898)
> >>     [java]     at
> >>CheckServerTask.runOnWorkerThread(CheckServerTask.java:33)
> >>     [java]     at
>
>>com.gargoylesoftware.base.gui.AbstractUIController$TaskRunnable.run(
AbstractUIController.java:50)
> >>     [java]     at java.lang.Thread.run(Thread.java:536)
> >>
> >>
>
>
> --
> Mike Bowler
> Principal, Gargoyle Software Inc.
> Voice: (416) 822-0973 | Email  : mbowler@GargoyleSoftware.com
> Fax  : (416) 822-0975 | Website: http://www.GargoyleSoftware.com
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-httpclient-dev-help@jakarta.apache.org>
>
>
>



Mime
View raw message