Link to home
Start Free TrialLog in
Avatar of stock99
stock99Flag for Australia

asked on

http_proxy in solaris10 sparc?

Hi,
   Can someone help me on configuring the proxy login from the solaris 10 (sparc)? I need to setup the http proxy so the box can reach internet doing some download and other things.

   Is there similar thing like http_proxy i can do for solaris? Would be appreciated if someone can show me the step on configuring it.  By the way, is there anyway i can make it prompt user to enter password (or/and username) upon access internet from shell?

ps: would prefer to do it on command line
   
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

so there is no environment variable like linux's http_proxy where you can set it and let other applications using http traffic to go through proxy server ? I mean, configure individual package using http to go through proxy is kinda not as convenient.
Avatar of stock99

ASKER

Forgot to mention i only have ssh access.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

Hi Gheist,


does that export mean I going to allow system wide accessing using that single username/password? is there anyway to limit the access of proxy for per user credential basis(ie. each user have to use their own login and password to get through proxy to internet)?
 
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

hmm i tried the http approach, but not sure if it is because the last character of my password is '@' , or sth else causing issue. I doesn't seem to able to get anything download using pca "http://www.par.univie.ac.at/solaris/pca/installation.html"

bash-3.00$ pca -l all
Downloading xref file to /var/tmp/patchdiag.xref
Trying https://sunsolve.sun.com/patchdiag.xref (1/1)
Failed
Failed (patchdiag.xref not found)

ERROR: Can't open xref file /var/tmp/patchdiag.xref (No such file or directory)


SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

my wget work with normal http download but not https download. Not too sure what's wrong here. My web browser has no trouble to access https site.

bash-3.00# echo $http_proxy
http://username:password@companyproxy.com:8080
bash-3.00# echo $https_proxy
http://username:password@companyproxy.com:8080
Avatar of stock99

ASKER

forgot to paste the error message when trying to download file from https

Connecting to companyproxy.com[x.x.x.x]:8080... connected.
Proxy request sent, awaiting response... 400 Bad Request
11:22:23 ERROR 400: Bad Request.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

i tried added that, but still got the same result..
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

Can someone else with more knowledge able to help me for this issue?


From the error log, it had probably already pass the authentication stage (hence the work 'connected').  But somehow, it doens't get pass the https for the proxy? During my normal browsing, I don't usually enter credential twice.

Btw, what would the error 400 stand for proxy error return ?
bash-3.00# echo $http_proxy
http://username:password@company_proxy.com:8080/
bash-3.00# echo $https_proxy
http://username:password@company_proxy.com:8080/
bash-3.00# wget https://sunsolve.sun.com/patchdiag.xref
--12:33:21--  https://sunsolve.sun.com/patchdiag.xref
           => `patchdiag.xref'
Resolving company_proxy.com... some_internal_dns_ip
Connecting to company_proxy.com[some_internal_dns_ip]:8080... connected.
Proxy request sent, awaiting response... 400 Bad Request
12:33:21 ERROR 400: Bad Request.

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

i dont' have access to proxy server unfortunately.  because of the company bureaucracy, i can't get any info from them..

I am able to download via wget via http but not via https . I can go try lynx but not so sure where to config the ssl (seldom use lynx)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

well.. the problem is when going thro http, most pacakge are not found. Not sure if it is because i use "--noreboot" and "--safe".  But only 10% of package get update make me wonder if http access allow all the update package to be done.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stock99

ASKER

no