CURL getting Error- couldn't connect to host

Hi

i am trying to open HTTP by curl command.

i am tryng to do that from command or script BASH.
also iptables is off

it doesnt work i am getting an error:

curl: (7) coudn't connect to host

the scipt is:

#! /bin/bash

curl http://www.cnn.com

Well, you get 302 -> "The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily")"

root@jail-1:/home/andy/test_deployment/C/ncurses# curl http://www.cnn.com
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

You should try curl on

http://edition.cnn.com/

Here is the output:

root@jail-1:/home/andy/test_deployment/C/ncurses# curl http://edition.cnn.com/ | more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<title>CNN.com International - Breaking, World, Business, Sports, Entertainment and Video News</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="last-modified" content="2013-03-19T13:22:32Z"/>
<meta http-equiv="refresh" content="1800;url=http://edition.cnn.com/?refresh=1"/>
<meta name="robots" content="index,follow"/>
<meta name="googlebot" content="noarchive"/>
...
...
...