Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 79309 invoked from network); 1 May 2005 12:11:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 May 2005 12:11:34 -0000 Received: (qmail 16498 invoked by uid 500); 1 May 2005 12:12:58 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 16365 invoked by uid 500); 1 May 2005 12:12:58 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 16351 invoked by uid 99); 1 May 2005 12:12:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail17.bluewin.ch (HELO mail17.bluewin.ch) (195.186.18.64) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 01 May 2005 05:12:57 -0700 Received: from xbox.localdomain (83.79.6.248) by mail17.bluewin.ch (Bluewin 7.0.043) id 423AEE770024F163; Sun, 1 May 2005 12:11:24 +0000 Received: from [192.168.0.3] (unknown [192.168.0.3]) by xbox.localdomain (Postfix) with ESMTP id A3E0BB6EC6; Sun, 1 May 2005 14:11:30 +0200 (CEST) Subject: Re: problem with cookie set by javascript From: Oleg Kalnichevski To: bakin@ibb.gov.tr Cc: httpclient-user@jakarta.apache.org In-Reply-To: <4271E8CB.5070905@ibb.gov.tr> References: <4271E8CB.5070905@ibb.gov.tr> Content-Type: text/plain; charset=ISO-8859-1 Date: Sun, 01 May 2005 14:11:22 +0200 Message-Id: <1114949482.4890.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ganime, Could you produce a complete wire log of the HTTP session (see this document for details ? I suspect the cookies are not included in the request due to a mismatch between the domain attribute of the cookie and the host name of the target server Cheers, Oleg On Fri, 2005-04-29 at 10:56 +0300, Ganime Bet�l AKIN wrote: > Hello, > I am trying to browse thru a site. The first page contains javascript > that checks my user-agent info and sets some cookies by using the following > > document.cookie = "icaClientCode=" + icaClientCode; > document.cookie = "icaObjectCode=" + icaObjectCode; > document.cookie = "icaBrowserCode=" + icaBrowserCode; > document.cookie = "icaScreenResolution=" + strResolution > > so, what I am doing it, I am manually setting the cookies > > client.getState().addCookie(new Cookie("3000xtra.glbl1.reuters.com", > "icaObjectCode", "1","/asp/", null,false)); > client.getState().addCookie(new Cookie("3000xtra.glbl1.reuters.com", > "icaClientCode", "1", "/asp/", null,false)); > client.getState().addCookie(new Cookie("3000xtra.glbl1.reuters.com", > "icaScreenResolution", "12800x960", "/asp/", null,false)); > client.getState().addCookie(new Cookie("3000xtra.glbl1.reuters.com", > "icaBrowserCode", "2","/asp/", null,false)); > > > But when I post to the next page, I get the error > > Internal Server Error > >

Microsoft VBScript runtime error > '800a000d' >

> Type mismatch: 'icaObjectCode' >

> /asp/include/login.vbs face="Arial" size=2>, line 34 > > well I managed to download this login.vbs and the problem seems to be in > the lines > > Dim icaObjectCode > icaObjectCode = Request.Cookies("icaObjectCode") > If Len(icaObjectCode) > 0 Then > isIE = CBool(icaObjectCode = 1) > Else > isIE = false > End If > End Sub > > it must be a mismatch with the value I assign to icaObjectCode. Bu how > do I get around this problem? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org