Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 96380 invoked from network); 16 Apr 2008 00:07:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2008 00:07:12 -0000 Received: (qmail 14099 invoked by uid 500); 16 Apr 2008 00:07:12 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 14077 invoked by uid 500); 16 Apr 2008 00:07:12 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 14068 invoked by uid 99); 16 Apr 2008 00:07:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 17:07:12 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of arkin@intalio.com does not designate 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 00:06:26 +0000 Received: by fg-out-1718.google.com with SMTP id 22so2205995fge.26 for ; Tue, 15 Apr 2008 17:06:38 -0700 (PDT) Received: by 10.86.98.18 with SMTP id v18mr8321338fgb.56.1208304032686; Tue, 15 Apr 2008 17:00:32 -0700 (PDT) Received: by 10.86.100.18 with HTTP; Tue, 15 Apr 2008 17:00:32 -0700 (PDT) Message-ID: <3de5d7d20804151700n57852263l9f2243f176dc3230@mail.gmail.com> Date: Tue, 15 Apr 2008 17:00:32 -0700 From: "Assaf Arkin" To: buildr-user@incubator.apache.org Subject: Re: Download issues In-Reply-To: <5c99d0330804151655q1cd64e11jd2d42ffb2d07f7db@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1778_33194122.1208304032664" References: <630065140804151545l4e7fbcdfv9e4a542e1ce40fcf@mail.gmail.com> <7DA892EF-45EE-46F8-ABEA-549A253090E7@detailedbalance.net> <5c99d0330804151655q1cd64e11jd2d42ffb2d07f7db@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1778_33194122.1208304032664 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, Apr 15, 2008 at 4:55 PM, Daniel Spiewak wrote: > Could Buildr potentially allow something like Mechanize as an alternative > download mechanism for situations such as this? Oracle's "protection" of > their JDBC driver would be fairly easy to get around automatically if > Buildr > were able to simulate a browser session calling different pages in > sequence > (which Mechanize allows). You can definitely use mechanize. In fact, you can define an artifact to download/create the file any way you want: artifact().enhance do |task| ... create the file task.name ... end Assaf > > > Daniel > > On Tue, Apr 15, 2008 at 5:57 PM, Rhett Sutphin > wrote: > > > Hi Harish, > > > > > > On Apr 15, 2008, at 5:45 PM, Harish Krishnaswamy wrote: > > > > > I am having issues downloading the Oracle driver automatically from my > > > build > > > script. I know they require a username and password, but it still > fails > > > when > > > I provide them in the url. Although that same URL works from within > the > > > browser. Here's the URL, username and password masked... > > > > > > > > > > https://profile.oracle.com/jsp/reg/loginHandler.jsp?username=XXX&password=XXX&redirectUrl=http://download.oracle.com/otn/utilities_drivers/jdbc/10204/ojdbc14.jar > > > > > > > I suspect that Oracle is setting some sort of session cookie when you > > visit the login page in your browser. I'm not sure if buildr's download > > mechanism supports including cookies in a redirect. > > > > [FWIW, I always end up just putting the oracle JDBC driver somewhere on > my > > intranet (for internal projects) or providing download instructions (for > > external). Too bad Oracle makes it so difficult to use their software.] > > > > Rhett > > > -- CTO, Intalio http://www.intalio.com ------=_Part_1778_33194122.1208304032664--