sorry druuna for not replying to that. Here is the response for the attached sample code.
I executed the below command and got the response as follows.
--2013-05-03 12:58:05-- (try: 2) http://www.tldp.org/LDP/Bash-Beginne...s-Guide.txt.gz
Connecting to www.tldp.org|126.96.36.199|:80
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
i tried pinging google.com it worked. But while trying sites like microsoft,asterisk etc.. they are throwing the above mentioned error.
Regarding the second piece of code. I tried but have a doubt on what to use the username and password is it system username/password?
i tried system username/password still the problem exists.
One more correction regarding Os, i am using "CentOS release 6.4 (Final)" i tried installing a newer version will solve my problem but still the problem exist.