Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2004 09:41:18 -0400 (EDT)
From:      "Charles Ulrich" <charles@idealso.com>
To:        "Adam Smith" <adam@internode.com.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Using fetch in http server that requires authentication
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>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38373.24.11.146.21.1096983678.squirrel>