Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 3299 invoked from network); 3 May 2005 16:38:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 May 2005 16:38:27 -0000 Received: (qmail 20327 invoked by uid 500); 3 May 2005 15:51:49 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 20248 invoked by uid 500); 3 May 2005 15:51:48 -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 20234 invoked by uid 99); 3 May 2005 15:51:48 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 08:51:11 -0700 Received: from d12nrmr1707.megacenter.de.ibm.com (d12nrmr1707.megacenter.de.ibm.com [9.149.167.81]) by mtagate1.de.ibm.com (8.12.10/8.12.10) with ESMTP id j43FnCkn152036 for ; Tue, 3 May 2005 15:49:12 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1707.megacenter.de.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j43FnC5p288458 for ; Tue, 3 May 2005 17:49:12 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11/8.13.3) with ESMTP id j43FnBrE020837 for ; Tue, 3 May 2005 17:49:11 +0200 Received: from d12ml067.megacenter.de.ibm.com (d12ml067.megacenter.de.ibm.com [9.149.164.162]) by d12av02.megacenter.de.ibm.com (8.12.11/8.12.11) with ESMTP id j43FnBFi020834 for ; Tue, 3 May 2005 17:49:11 +0200 In-Reply-To: <50BE0CB6296F9E4684D186002ECE445801B627B2@exchnj01.nj.ssmb.com> To: "HttpClient User Discussion" MIME-Version: 1.0 Subject: Re: Problem with Cookies X-Mailer: Lotus Notes Release 6.5.3 September 14, 2004 From: Roland Weber X-MIMETrack: S/MIME Sign by Notes Client on Roland Weber/Germany/IBM(Release 6.5.3|September 14, 2004) at 03.05.2005 17:45:29, Serialize by Notes Client on Roland Weber/Germany/IBM(Release 6.5.3|September 14, 2004) at 03.05.2005 17:45:29, Serialize complete at 03.05.2005 17:45:29, S/MIME Sign failed at 03.05.2005 17:45:29: The cryptographic key was not found, Serialize by Router on D12ML067/12/M/IBM(Release 6.53HF247 | January 6, 2005) at 03/05/2005 17:49:11, Serialize complete at 03/05/2005 17:49:11 Message-ID: Date: Tue, 3 May 2005 17:49:10 +0200 Content-Type: multipart/alternative; boundary="=_alternative 00568FC2C1256FF6_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 00568FC2C1256FF6_= Content-Type: text/plain; charset="US-ASCII" Hello Vish, is your "web proxy server" configured as a proxy in the browser, or are you pointing your browser directly to your web application, which just happens to forward the requests someplace else? In the second case, you may have an issue with the cookie domain. A cookie set for domain .yahoo.com will not be sent to a host proxy.mydomain.wherever.it.is. Cookies can be set without a domain, in which case the domain is taken from the host that set the cookie. That would explain why some cookies work, while others don't. hope that helps, Roland "Sambaiah, Vishwas" 03.05.2005 16:49 Please respond to "HttpClient User Discussion" To "HttpClient User Discussion" cc Subject Problem with Cookies Hello All, I am trying to write a small web proxy type application for a web performance benchmarking tool. Though this application essentially is a web proxy server, it additionally has logic for generating custom test scripts etc due to which I cannot use off the shelf proxy server. I found that HttpClient was a neat reusable component to plug into my application. I have successfully integrated HttpClient component into my app, but I bumped into issues with cookies. After initial research through the archives of the mailing list, I realized that I should set the CookiePolicy.BROWSER_COMPATIBILITY for most browsers to work. This solved most of my problems. However, I still have issues with cookies for ex. when I try logging into Yahoo mail. When I enter my username and password on the browser, the response page I get from the server is asking em to check if my browser is enabled to accept cookies. I am not too sure what is happening in the background but what I am sure is, the cookies arent set properly between the server and client browser. I would really appreciate if someone point me in the right direction in solving the cookie issue as I have hit a bottleneck. Thanks in advace for helpful pointers. Regards Vish ------------------------------------------------------------------------------------------------------------------------------------------------------------------- SOMETIMES YOU NEED TO GO FAR, TO FIND WHAT IS CLOSEST TO YOU --=_alternative 00568FC2C1256FF6_=--