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.
wget
http://www.tldp.org/LDP/Bash-Beginne...s-Guide.txt.gz
Response:
--2013-05-03 12:58:05-- (try: 2)
http://www.tldp.org/LDP/Bash-Beginne...s-Guide.txt.gz
Connecting to
www.tldp.org|152.19.134.41|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
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.
Thanks
Vijay