FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-27-2008, 02:58 AM
"Joe Smith"
 
Default Escaping @ in apt.conf

"Ron Johnson" <ron.l.johnson@cox.net> wrote in message
news:48DD21DC.3040108@cox.net...

On 09/26/08 12:27, Cassiano Leal wrote:

Hi list!

Is it possible to escape an "@" in apt.conf?

I have a file /etc/apt/apt.conf.d/60proxy with the syntax to use apt
through a proxy:

ACQUIRE {
http:roxy "http://usernameassword@proxy.server.com:3128/"
}

but since my password has an @ in it, aptitude thinks that the server
address starts right after this @. Say this is the real thing:


Change your password?


http:roxy "http://usernameassw@rd@proxy.server.com:3128/"

I get an error saying that it could not resolve the hostname
@rd@proxy.server.com !

Is there a way to escape the @ in the password?

You must use URL encoding. (i.e:
http:roxy "http://usernameassw%40rd@proxy.server.com:3128/"
)

If that fails to work then it is a bug in apt, and should be reported with
reportbug.





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-27-2008, 10:29 AM
Tzafrir Cohen
 
Default Escaping @ in apt.conf

On Fri, Sep 26, 2008 at 02:27:38PM -0300, Cassiano Leal wrote:
> Hi list!
>
> Is it possible to escape an "@" in apt.conf?
>
> I have a file /etc/apt/apt.conf.d/60proxy with the syntax to use apt
> through a proxy:
>
> ACQUIRE {
> http:roxy "http://usernameassword@proxy.server.com:3128/"
> }
>
> but since my password has an @ in it, aptitude thinks that the server
> address starts right after this @. Say this is the real thing:
>
> http:roxy "http://usernameassw@rd@proxy.server.com:3128/"
>
> I get an error saying that it could not resolve the hostname
> @rd@proxy.server.com !
>
> Is there a way to escape the @ in the password?

usernameassword@hostname is interpeted by the client and sent to the
host explicitly. Apt should have some explicit settings for username and
password to the proxy. Unless I'm mistaken.

--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 01:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org