From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 13:41:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5508D16A4CE for ; Tue, 5 Oct 2004 13:41:22 +0000 (GMT) Received: from freedombi.com (joshuadiedrich.com [207.179.98.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D8C843D41 for ; Tue, 5 Oct 2004 13:41:21 +0000 (GMT) (envelope-from charles@idealso.com) Received: by freedombi.com (Postfix, from userid 1000) id C1FB972484; Tue, 5 Oct 2004 09:41:20 -0400 (EDT) Received: from freedombi.com (localhost [192.168.10.108]) by freedombi.com (Postfix) with ESMTP id D311A723A5; Tue, 5 Oct 2004 09:41:18 -0400 (EDT) Received: from 24.11.146.21 (SquirrelMail authenticated user charles); by freedombi.com with HTTP; Tue, 5 Oct 2004 09:41:18 -0400 (EDT) Message-ID: <38373.24.11.146.21.1096983678.squirrel@24.11.146.21> In-Reply-To: <20041005072631.GD42241@internode.com.au> References: <20041005071245.14851.qmail@web51605.mail.yahoo.com> <20041005072631.GD42241@internode.com.au> Date: Tue, 5 Oct 2004 09:41:18 -0400 (EDT) From: "Charles Ulrich" To: "Adam Smith" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on freedombi.com X-Spam-Level: X-Spam-Status: No, hits=-1.1 required=7.0 tests=BAYES_00,USERPASS autolearn=no version=2.63 cc: Mark Jayson Alvarez cc: freebsd-questions@freebsd.org Subject: Re: Using fetch in http server that requires authentication X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 13:41:22 -0000 Adam Smith said: > fetch http://renem:mhall\[\;\]@yoursnapserver.com/file.txt > >> I also noticed the password contains special characters, but I don't know >> if they'll have to be escaped. Perhaps you do. Any idea? thanks. > > They will. I have escaped them by prefixing a \ symbol before them. I > suggest after this post you change the password. Even though you haven't > provided us with much more detail, posting a username and password and > saying "These are the credentials for our SNAP server" is a big security > risk, as someone evil might know you by name :) This may depend on your shell, but you could also escape the whole thing at once with quotes on each end: fetch 'http://renem:mhall[;]@yoursnapserver.com/file.txt' This is often easier and less to type if there are more than 2 characters to be escaped. -- Charles Ulrich System Administrator Ideal Solution, LLC - http://www.idealso.com