Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 45143 invoked from network); 11 Aug 2003 22:49:54 -0000 Received: from out2.smtp.messagingengine.com (HELO mail.messagingengine.com) (66.111.4.26) by daedalus.apache.org with SMTP; 11 Aug 2003 22:49:54 -0000 Received: from smtp.us2.messagingengine.com (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 5913597E9A for ; Mon, 11 Aug 2003 18:50:01 -0400 (EDT) Received: from 10.202.2.133 ([10.202.2.133] helo=smtp.us2.messagingengine.com) by messagingengine.com with SMTP; Mon, 11 Aug 2003 18:50:01 -0400 Received: by smtp.us2.messagingengine.com (Postfix, from userid 99) id D85576DAFF; Mon, 11 Aug 2003 18:49:58 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) From: "Stephen Charles Huey" To: "Commons Net User list" Date: Mon, 11 Aug 2003 16:49:58 -0600 X-Epoch: 1060642201 X-Sasl-enc: NMiOaW/bAXAf2iGqq7t7CA Subject: Re: httpclient: download file with url References: <3F30AF480000316F@mssbzhh-int.msg.bluewin.ch> <3F33D42D.8080000@bluewin.ch> <20030811224404.6FEE572F86@smtp.us2.messagingengine.com> In-Reply-To: <20030811224404.6FEE572F86@smtp.us2.messagingengine.com> Message-Id: <20030811224958.D85576DAFF@smtp.us2.messagingengine.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This seems like a really dumb question all of a sudden. I wracked my brain so much over trying to interact with the HTTPS site (I got my code working with an HTTP site days ago) that I've forgotten some of the basics. I'm assuming I use GET in some way, but really, I'm not sure how to write it so that I actually download and save the file. I'm using the Commons HttpClient to interact with the site, and I'm guessing that there's probably a really straightforward way to execute a GET and save the file, so please help me out if you know... On Mon, 11 Aug 2003 16:44:04 -0600, "Stephen Charles Huey" said: > I've finally figured out how to interact with an HTTPS site, but now that > a page is displaying for me a list of URLs pointing to files I can > download, how do I actually download a file? Do I use Commons code, or > java.net (e.g. something to do with URL) and java.io (your > run-of-the-mill FileInputStream, etc) code, or some sort of combination, > or what? For instance, can the pathname used to instantiate a > java.io.File object be a hyperlink on an HTTPS site? Thanks for any > help! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >