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
   
stock99Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
are you going t use gui browser ? if yes then you can set it to use proxy. if you want to use tools like wget then it supports http_proxy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stock99Author Commented:
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.
0
stock99Author Commented:
Forgot to mention i only have ssh access.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

omarfaridCommented:
I am not sure if other applications use http_proxy on solaris. When you say you only have ssh access, do you mean from the system?
0
gheistCommented:
export http_proxy=http://user:password@proxy.host:port/
-"- ftp_proxy
-"- https_proxy

Does not work with GNOME-JDS breed but that does not seem to be of concern.
Works with lynx, pkg etc.
0
stock99Author Commented:
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)?
 
0
omarfaridCommented:
The export command will make env variables available to sub processes of the current shell for that user and not all users.
0
gheistCommented:
command line tools have no intrumentation to get passwords.
graphical browsers do PAC/WPAD
0
stock99Author Commented:
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)


0
gheistCommented:
http://www.par.univie.ac.at/solaris/pca/usage.html

it uses wget configuration, not environment. get wget right first.
0
stock99Author Commented:
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
0
stock99Author Commented:
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.
0
gheistCommented:
You missed last slash in variable content.
0
stock99Author Commented:
i tried added that, but still got the same result..
0
gheistCommented:
Works for me for last 10 years, you are special - does not for you.
0
stock99Author Commented:
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

0
gheistCommented:
Look at proxy logs. HTTP error 400 is generated by HTTP server or proxy, not by client like the error you posted previously.
Are you able ot download with lynx or wget in current setup?
0
stock99Author Commented:
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)
0
gheistCommented:
Then go with http. Your wget may not support ssl as well.
0
stock99Author Commented:
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.
0
gheistCommented:
Ask your proxy admin - really...
0
stock99Author Commented:
no
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.