From owner-freebsd-ports@FreeBSD.ORG Sun Sep 4 23:04:02 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81F7A16A41F for ; Sun, 4 Sep 2005 23:04:02 +0000 (GMT) (envelope-from ckjmaner@yahoo.com) Received: from web54501.mail.yahoo.com (web54501.mail.yahoo.com [206.190.49.151]) by mx1.FreeBSD.org (Postfix) with SMTP id 1123C43D48 for ; Sun, 4 Sep 2005 23:04:01 +0000 (GMT) (envelope-from ckjmaner@yahoo.com) Received: (qmail 9655 invoked by uid 60001); 4 Sep 2005 23:04:01 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IxE8x/n9U/J4rGzLdxST77pWvCLVfT/LF9jblhSUIH8b9OHVSWVWqtZWpp8QXj4AdSb1d/ZKa2KKGAbsU3ONjmBplL75oiabdLyUm1+fgoN/VegbP5ga4H5XetCgL73cuv77/G7eMhESzPJvFPFG7yXUl1/tW0P/xWFsb9Clwxs= ; Message-ID: <20050904230401.9653.qmail@web54501.mail.yahoo.com> Received: from [209.86.136.135] by web54501.mail.yahoo.com via HTTP; Sun, 04 Sep 2005 16:04:01 PDT Date: Sun, 4 Sep 2005 16:04:01 -0700 (PDT) From: Charles Maner To: Parv In-Reply-To: <20050904213928.GA17782@holestein.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org Subject: Re: Perl libwww--LWP::Simple X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2005 23:04:02 -0000 Hi Parv--thanks for the reply. My code, on all three platforms, is: ##### Begin Code ########## use strict 'vars'; use strict 'subs'; use LWP::Simple; LWP::Simple::getstore("http://biz.yahoo.com/i/","tickers.html") or die("Website not found!\n"); open TICKERS, "tickers.html"; my @tickers = ; print "@tickers\n"; close TICKERS; exit; ##### End Code ########## This code runs fine on Win32/ActivePerl as well as MacOSX Tiger/10.4. Also, I use Firefox with cookies disabled from this site and the website downloads just fine within the browser. So.... Thanks--I look forward to any suggestions. --Charles --- Parv wrote: > in message > <20050904172305.32264.qmail@web54515.mail.yahoo.com>, > wrote Charles Maner thusly... > > > > When I use getstore to retrieve an actual > filename such as > > .pdf/.ppt/.jpg, LWP::Simple::getstore works > well/as advertised. > > However, if it's plain html, (e.g., > http://biz.yahoo.com/i/), it > > does not return an error code, but also returns no > filename > > either. The identical code, as indicated above, > runs as is > > beautifully on Win32 (ActiveState Perl 5.8.7) > ... > > I do notice, though, this site wants to plant a > cookie. Would > > this be an issue on FreeBSD's libwww port? If so, > any idea how to > > fix it/work around or should I use the > LWP::UserAgent module? > > In case you think cookies are giving you trouble ... > How do you deal > w/ cookies in your code? Have you tried getting the > Yahoo page that > you are interested in w/o cookies in any other user > agent (aka web > browser)? > > Can you supply the minimum runnable code which > generates the problem > for you? > > > > - Parv > > -- > >