You are not logged in.

#1 2010-07-19 10:32:48

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

export all_proxy. issue with user name?

Hi,
cause I have do connect throught internet via proxy i'm tray to export a system variable by doing:
export all_proxy=''http://username.password@proxyserver:port''
but, for example, if I try:
yaourt -Ss packgename
I get:
lexical error: invalid char in json tex.
(right here - proxy authentication required

I think that the problem is that my username is like
name.surname
and probably the dot between name and surname cause the error.

I CAN'T change my user name.
Can some one help to workaround this problem?
Thank you...

Offline

#2 2010-07-19 10:58:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

Try export http_proxy
https://bbs.archlinux.org/viewtopic.php … 46#p404446
I think it works similarly for other downloaders (curl).

Last edited by karol (2010-07-19 11:00:12)

Offline

#3 2010-07-19 11:13:10

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

I know that but the problem of username construct remain !
In wgetrc you can set a string egual to the one provided...

Offline

#4 2010-07-19 11:22:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

HTTP_PROXY=http://username:password@host:port
Try colon instead of dot.

Offline

#5 2010-07-19 11:38:07

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

Sorry, where I have to use colon(:) instead of dot (.)?
Server recognize my user name only in the form name.surname.
If I substitute dot with colon username mismatch.
I'm looking for a way to let dot be recognized as a normal character  that  is a part of the user name.
Probably  I was not clear in the exposition of the problem...;-)

Offline

#6 2010-07-19 11:43:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

you wrote in your first post -> username.password
I suggest                               -> username:password

If username = foo.bar - let it be.

Offline

#7 2010-07-19 20:26:35

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

In the first post I also said:
"my username is like name.surname"

The problem is that, in general, I can't "let it be"...
:-(

Offline

#8 2010-07-19 22:41:08

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: export all_proxy. issue with user name?

karol isn't suggesting replacing the dot (.) in your username with a colon (:). He/she is suggesting separating your username and password with a colon instead of a dot:

http://bruce.smith:MyPassword@proxy.domain.local:3128

Last edited by fukawi2 (2010-07-19 22:41:19)

Offline

#9 2010-07-20 07:32:41

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

Sorry Karol & fukawi2!
I've completely miss understan!
Have you ever test the code provide?
Ay help for my question (at top)?

Offline

#10 2010-07-20 09:33:47

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: export all_proxy. issue with user name?

Alexbit wrote:

Have you ever test the code provide?

It's the way I always do it... I've never used a dot between the username and password.

Offline

#11 2010-07-20 09:37:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

@ fukawi2
Does it work even if you use 'bruce.smith' and not 'skywalker' as your username? Does it doesn't mind the dot _in the username_?

Offline

#12 2010-07-20 09:41:52

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

karol wrote:

@ fukawi2
Does it work even if you use 'bruce.smith' and not 'skywalker' as your username? Does it doesn't mind the dot _in the username_?

Thank you for the translation Karol!
That's qhat I need to know!
Thank you.
Hope now the question is more clear!

Offline

#13 2010-07-20 09:44:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

@ Alexbit
fukawi2 already mentioned it, I only want to be sure:
https://bbs.archlinux.org/viewtopic.php … 36#p794836

http://bruce.smith:MyPassword@proxy.domain.local:3128

There's a dot in the user.name.

Offline

#14 2010-07-20 09:52:10

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

karol wrote:

@ Alexbit
fukawi2 already mentioned it, I only want to be sure:
https://bbs.archlinux.org/viewtopic.php … 36#p794836

http://bruce.smith:MyPassword@proxy.domain.local:3128

There's a dot in the user.name.

I know but there's a small interesting things...
Is an example or is fukawi2 use it a "real case"?

In my scenario, a string like this (with a dot in the user name) cause the error I post in #1.

Offline

#15 2010-07-20 09:53:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

> Is an example or is fukawi2 use it a "real case"?
That's the thing I want to be sure about :-)

Offline

#16 2010-07-20 11:27:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: export all_proxy. issue with user name?

This is only an example:

http://bruce.smith:MyPassword@proxy.domain.local:3128

I don't have a dot in my username for any proxies so I can't test. You will need to try it and see if it works.

Offline

#17 2010-07-20 11:34:28

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

I can't test!
All user name of our domain are based on "dot" and I can't do nothing about it because I'm not an admin.
For that I'm looking for a method to let the dot be recognized as a normal character  that  is a part of the user name (see #5).

I'm start thinking that is no possible... DAM! DAM! DAM!

Offline

#18 2010-07-20 11:36:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

What happens if you use

export all_proxy=''http://username:password@proxyserver:port''

Does it work?

export all_proxy=''http://name<dot>surname<colon>password@proxyserver:port''

Replace <dot> by . and <colon> by :

Last edited by karol (2010-07-20 11:37:17)

Offline

#19 2010-07-20 11:47:02

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

it do not work.
This is what I do:

#su root
#export all_proxy="http://name.surname:password@ipaddress:port"
# yaourt -Ss citrix
lexical error: invalid char in json text.
                                       Proxy authentication required
                     (right here) ------^

Offline

#20 2010-07-20 11:50:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

https://bugs.launchpad.net/ubuntu/+sour … bug/318469

How about using sth other than yaourt?

Offline

#21 2010-07-20 11:59:43

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

It seems the same bug!
Do you think that I've to report that on arch bugs section?

I don't know sth. I've try google but it sugest me ssh.
Have you a link for sth?

(ps: I've do "yaourt ..." only because is the first command that I got in mind... :-) )

Last edited by Alexbit (2010-07-20 12:00:59)

Offline

#22 2010-07-20 12:05:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

Let's start again: do you get that error only when running yaourt? What happens if you do

pacman -Syu

?

Offline

#23 2010-07-20 12:14:55

Alexbit
Member
From: Italy
Registered: 2010-06-02
Posts: 60

Re: export all_proxy. issue with user name?

Work already being installed!
And to be honest, I did not do any setting to get it going!
Firefox is set to use a proxy and asks me to authenticate (I must put every time I open it. Unless you save it).
In general, any program that connects to the Internet must be set to use proxy authentication and should not be otherwise.
If you want I can send the configuration files.

.. Thanks for your patience!

Offline

#24 2010-07-20 12:16:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: export all_proxy. issue with user name?

So pacman works, yaourt doesn't?
If so, you can file a bug report for the dot.

Offline

#25 2010-11-08 08:54:12

oraerk
Member
Registered: 2010-10-20
Posts: 18

Re: export all_proxy. issue with user name?

Offline

Board footer

Powered by FluxBB