Using fetch in http server that requires authentication

2004-10-05 Thread Mark Jayson Alvarez
Hi,
  I want to use fetch to get some files from our http
snap server but it requires username and password;

Here's the details

username: renem
password: mhall[;]

How will I tell fetch to use those details and
automatically provide it when the server asks for it?

The reason why I want to do this is because I want the
task to become automated during boot time. 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.

-jay









___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using fetch in http server that requires authentication

2004-10-05 Thread Adam Smith
On Tue, Oct 05, 2004 at 12:12:45AM -0700, Mark Jayson Alvarez said:
 Hi,
   I want to use fetch to get some files from our http
 snap server but it requires username and password;
 
 Here's the details
 
 username: renem
 password: mhall[;]

fetch http://renem:mhall\[\;[EMAIL PROTECTED]/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 :)

-- 
Adam Smith
Internode   : http://www.internode.on.net
Phone   : (08) 8228 2999

Dog for sale: Eats lots and is fond of children.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using fetch in http server that requires authentication

2004-10-05 Thread Charles Ulrich

Adam Smith said:
 fetch http://renem:mhall\[\;[EMAIL PROTECTED]/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[;[EMAIL PROTECTED]/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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]