Problem in access the internet through command line

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Problem in access the internet through command line
# 1  
Old 07-23-2014
Problem in access the internet through command line

Hi Folks,

I have installed Centos-6.4 in my VMware. I have enabled the proxy settings in the network and I am able to access the internet through GUI, but unable to browse via the command line. I did the below options as:
1) Added the proxy setting in /etc/environment file.
Code:
export http_proxy="http"//www.xxxx.com/xxx:80"

2) Added in the /etc/profile file:
Code:
export http_proxy="http"//www.xxxx.com/xxx:80"

but, this doesn't helped me out.

-Siva

Last edited by rbatte1; 07-24-2014 at 10:00 AM.. Reason: Added CODE tags
# 2  
Old 07-23-2014
What command line web client are you using? wget, lynx,..? What error do you get? Does mozilla/firefox work?
# 3  
Old 07-23-2014
Your proxies are wrong.

Try:

Code:
export http_proxy="http://www.xxxx.com/xxx:80"

You will have to logout and log back in for the settings to take effect.
# 4  
Old 07-23-2014
try this way

Code:
 export http_proxy="http://USERNAME:PASSWORD@your_proxy_server:proxy_server_port"

Example :
Code:
 export http_proxy="http://akshay:nopassword@192.129.3.5:3128"

Code:
 export http_proxy="http://akshay:nopassword@myserver.org:3128"

# 5  
Old 07-24-2014
Thanks for your replies.

Yes, I can access the webpages and download from the browser, but still can't do it with the command line.

Quote:
[root@master Downloads]# wget http://mirror.centos.org/centos/6/os...6_4.x86_64.rpm
--2014-07-23 20:58:20-- http://mirror.centos.org/centos/6/os...6_4.x86_64.rpm
Resolving proxypac.xxx.com... 192.168.131.11
Connecting to proxypac.xxx.com.|192.168.131.11|:80... connected.
Proxy request sent, awaiting response... 404 Not Found
2014-07-23 20:58:20 ERROR 404: Not Found.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

DB Access Command Line Utility

To read/write to a DB from Java or Perl, you usually have to install/reference several drivers and write a whole bunch of boilerplate DB access code. I'm curious if someone has written a command line utility for Unix/Linux for simple database access for the major providers, something like: ... (3 Replies)
Discussion started by: furashgf
3 Replies

2. IP Networking

Does my provider limit my internet access or somesites access?

Hi Good Day, i would like to ask for further info about my problems experiencing this evening. Im a PPP0 connection in the internet using 3G located in asia pacific region.i had this problem this evening in my INTERNET connections that there are some sites i can't open example ( Gizmodo.com,... (2 Replies)
Discussion started by: jao_madn
2 Replies

3. IP Networking

Access database over internet, help

Hi! :D I'm new here, and I will appreciate all the help you can give. This is the problem we are trying to solve at my office. At office 1 we have SCO UNIX 5.0.can't remember last number. On it runs database software on which we input/read/modify data throughout terminal software, on remote... (1 Reply)
Discussion started by: PNemesis
1 Replies

4. UNIX for Dummies Questions & Answers

Can not access internet?

Hi everybody. I've setup SunSolaris 10 on VirtualBox, but when I start Sun, I can connect to the Internet, when I open terminal and type command for list device ethernet: #ifconfig -a just only see loopback lo0 Can help me solve this problem? Thank you very much, ken (0 Replies)
Discussion started by: kenjingo
0 Replies

5. Solaris

cannot access to internet , help

hi experts i have a sun Enterprise 220 R server with solaris 10 and patches , i configured network card with ip addresses that have access to Internet but i can't be connected :confused: for same informations : root@E220R # ifconfig -a lo0:... (5 Replies)
Discussion started by: lid-j-one
5 Replies

6. Solaris

Cannot access internet

Hi Friends,:b: This is venkatesh, i have Intel Dual core PC and installed Solaris 10. I have a problem that i cannot access internet in my PC i don't know either the drivers installed or not. I manually assign ip 192.168.1.7 and if i ping to this it is alive and if i ping for 192.168.1.1 for the... (4 Replies)
Discussion started by: 1409.venkatesh
4 Replies

7. SCO

internet access

My SCO box has lost connection to the internet. It sites behind a fire wall and is connected to a local network. What should I check for. (2 Replies)
Discussion started by: fruiz
2 Replies

8. UNIX for Dummies Questions & Answers

Internet access

Hi everybody, I'd like create a connection (by modem) for my unix workstation. I just have the RS232 port and my modem, no lan connection, and I want to surf the net. How can I setup it? Thanks in advance, Mauro (1 Reply)
Discussion started by: Mauro
1 Replies

9. UNIX for Dummies Questions & Answers

internet access

I've configured my TCP/IP to have the right protocols to access the internet such as TPC/IP, subnet mask, gateway and dns server but still Im not able to ping anything to the internet. Anybody who has some few good words for me? I need help. Thanks. (2 Replies)
Discussion started by: nseal101
2 Replies

10. UNIX for Dummies Questions & Answers

Urgent!! How to write a shell program to execute command to access internet?

hi, I am new ot unix. So, can i write a shell(c shell or korn shell) program to access internet? I mean if I run the program, it can access specified url and then copy the html to a file? Can anyone help me? And how can make the program runs every 1 hr? new comer (2 Replies)
Discussion started by: firebirdonfire
2 Replies
Login or Register to Ask a Question