LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slapt-get, howto pass username and passwd for http requests to our proxy !! (https://www.linuxquestions.org/questions/slackware-14/slapt-get-howto-pass-username-and-passwd-for-http-requests-to-our-proxy-308164/)

Padmakiran 03-31-2005 06:35 AM

slapt-get, howto pass username and passwd for http requests to our proxy !!
 
Hi all,

How to pass username and password for authentication while using slapt-get for any of the http requests to our proxy server ??

We have the --http-user=XXX and --http-passwd=yyy on our wget. Do we have any thing similar in slapt-get ??

thanx,
Padmakiran.

cavalier 03-31-2005 09:12 AM

I haven't tried this yet, but does slapt-get honor .netrc configuration?

Padmakiran 03-31-2005 10:38 AM

I'm sorry but i haven't used .netrc. Can we pass username & password to our http proxy server using this ?

Is there any other way like in wget to convey the username & password to the proxy ?

Are there any other tools in slackware which are like apt-get of debian ?

davatar 03-31-2005 12:07 PM

I don't know very much about environment variables, or linux yet for that matter, but when I'm at school I have to manually set the http_proxy=x.x.x.x:xx and ftp_proxy= env. variables if accessing the net from the console. Is there perhaps a variable for proxy username/pass?

Does your proxy server accept the "http://username@pass:ipaddress: port/" format? (no space between : and port at the end there, I added one so the dumb smiley face would go away.) If it supports it, you could probably enter that as the http_proxy variable. (I don't know if proxy's can do that, but a lot of websites will if you are attempting to directly access a user-ony area.)

keefaz 03-31-2005 12:11 PM

You may have better luck with

http://user:password@host:port

davatar 03-31-2005 12:21 PM

Oh woops, my bad. Keefaz posted the correct format. :D

Padmakiran 04-01-2005 02:58 AM

Nope http://user:password@host:port still doesn't work !!

I even tried this way http://user:password@host/<url>

Any other way to do the proxy authentication properly ?

Padmakiran 04-01-2005 03:01 AM

Nope http://user: password@host: port still doesn't work !!

I even tried this way http://user: password@host/<url>

Any other way to do the proxy authentication properly ?

Padmakiran 04-01-2005 03:02 AM

Nope http://user: password@host: port still doesn't work !!

I even tried this way http://user: password@host/<url>

Any other way to do the proxy authentication properly ?

i'm sorry there is no space between colon and p. Didn't know it represents a smiley !

dunric 04-01-2005 04:01 AM

It should work but maybe your proxy accept uses nonstandard authentication.
Are you able to get through proxy with a web-browser ? If you do, which browser and what settings do you use ?

Padmakiran 04-01-2005 04:10 AM

I'm able to access http requests from my browser. Currently i'm using mozilla 1.7 on my slack 10.0 box.
Are u able to authenticate u'r self using slapt-get by setting the user name & passwd in your http url ?

davatar 04-01-2005 01:32 PM

Perhaps you could ask the administrator of the network/proxy to allow authentication in the username@password:host: port format?

Otherwise do some searching about environment variables and proxy settings.

frandalla 07-25-2005 12:25 PM

do this export on console and you'll be able to use text browsers and connect to slapt-get to!
Code:

export http_proxy=username:password@proxy_server:port

kynder 05-05-2010 09:05 AM

I've got it!
 
I have been trying to use proxy authentication through slapt-get for a while, but now it works perfectly.

what did I do ? Nothing! Just add the ' like the example:

export http_proxy='username: password@proxy_server: port'

or with domain

export http_proxy='domain\username: password@proxy_server: port'

;P


All times are GMT -5. The time now is 08:10 PM.