c# - Why can I ping a web page but not access it through browser? -


i trying understand proxy servers, have @ work. wondering, why can ping web page not open it? surely, pinging needs interaction between computer , web page's servers? there way retrieve data web page through programming? (not proxy bypassing websites such v-tunnel)

a ping response has nothing http server. when machine responds ping request means accessible through network. open webpage address, remote machine must serve page through http server.

in case, server machine on , connected network (it responds ping), http server not running/configured.


as second question, there many ways retrieve web page code, if google find many examples. in c# use webclient example:

webclient client = new webclient (); string reply = client.downloadstring (address); 

keep in mind accessing page using web browser. if have proxy in network, request internet goes through it.


Comments