fire an URL using shell script

Hi,

Can anyone tell me how to fire an URL using a shell script?
:wall:

wget 'url'

Source code should be saved in a file.

Also when i am using wget command it is showing this error.

wget Google
--2012-06-26 03:47:52-- Google
Resolving www.google.co.in... 173.194.75.94, 2607:f8b0:4002:802::1017
Connecting to www.google.co.in|173.194.75.94|:80... failed: Connection refused.
Connecting to www.google.co.in|2607:f8b0:4002:802::1017|:80... failed: Network is unreachable.

Any idea why this coming.

wget 'www.google.com'
--04:45:42--  http://www.google.com/
Resolving www.google.com... 74.125.227.116, 74.125.227.115, 74.125.227.112, ...
Connecting to www.google.com|74.125.227.116|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.1'

    [ <=>                                                                                                                 ] 14,436      --.-K/s   in 0.02s

04:45:43 (741 KB/s) - `index.html.1' saved [14436]

$ wget 'www.google.com'
--2012-06-26 04:55:48--  Google
Resolving www.google.com... 173.194.75.99, 173.194.75.103, 173.194.75.104, ...
Connecting to www.google.com|173.194.75.99|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.103|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.104|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.105|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.106|:80... failed: Connection refused.
Connecting to www.google.com|173.194.75.147|:80... failed: Connection refused.
Connecting to www.google.com|2607:f8b0:4002:802::1013|:80... failed: Network is unreachable.

---------- Post updated at 02:30 PM ---------- Previous update was at 02:29 PM ----------

same error.

Hi,

You might have problem with the proxy. try with this and check if it can execute wget.

export http_proxy='proxy_server_ip:8080'

export http_proxy='http://myproxy.cmp.com:8080/'

any other command to fire url through shell script.

try with this one..

curl 'www.google.com' > index.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14436    0 14436    0     0  84731      0 --:--:-- --:--:-- --:--:--  272k

Why are none of the above solutions good? What do you need?