Why can I successfully ping stats.nba.com and not stats.nba.com/stats
Very new to Unix and experimenting with a Digital Ocean droplet. Why can I successfully ping stats.nba.com whereas ping stats.nba.com results in ping: unknown host stats.nba.com/stats
dns ping
add a comment |
Very new to Unix and experimenting with a Digital Ocean droplet. Why can I successfully ping stats.nba.com whereas ping stats.nba.com results in ping: unknown host stats.nba.com/stats
dns ping
4
As far as i know...you pinghosts, notpathsorhosts + paths. You may try curl o wget to "ping" a host+path and parse the http code in the response.
– bistoco
Jan 13 at 4:54
I agree with @bistoco. I have just tried pinging a page that does existwww.nba.com/standingsand it too returnsName or service not known. So you will not be able to ping a path. Only the host can be pinged.
– Terrance
Jan 13 at 5:38
@bistoco that sounds like it should be an answer!
– steeldriver
Jan 13 at 14:23
add a comment |
Very new to Unix and experimenting with a Digital Ocean droplet. Why can I successfully ping stats.nba.com whereas ping stats.nba.com results in ping: unknown host stats.nba.com/stats
dns ping
Very new to Unix and experimenting with a Digital Ocean droplet. Why can I successfully ping stats.nba.com whereas ping stats.nba.com results in ping: unknown host stats.nba.com/stats
dns ping
dns ping
asked Jan 13 at 4:35
Scott HorvathScott Horvath
1
1
4
As far as i know...you pinghosts, notpathsorhosts + paths. You may try curl o wget to "ping" a host+path and parse the http code in the response.
– bistoco
Jan 13 at 4:54
I agree with @bistoco. I have just tried pinging a page that does existwww.nba.com/standingsand it too returnsName or service not known. So you will not be able to ping a path. Only the host can be pinged.
– Terrance
Jan 13 at 5:38
@bistoco that sounds like it should be an answer!
– steeldriver
Jan 13 at 14:23
add a comment |
4
As far as i know...you pinghosts, notpathsorhosts + paths. You may try curl o wget to "ping" a host+path and parse the http code in the response.
– bistoco
Jan 13 at 4:54
I agree with @bistoco. I have just tried pinging a page that does existwww.nba.com/standingsand it too returnsName or service not known. So you will not be able to ping a path. Only the host can be pinged.
– Terrance
Jan 13 at 5:38
@bistoco that sounds like it should be an answer!
– steeldriver
Jan 13 at 14:23
4
4
As far as i know...you ping
hosts, not paths or hosts + paths. You may try curl o wget to "ping" a host+path and parse the http code in the response.– bistoco
Jan 13 at 4:54
As far as i know...you ping
hosts, not paths or hosts + paths. You may try curl o wget to "ping" a host+path and parse the http code in the response.– bistoco
Jan 13 at 4:54
I agree with @bistoco. I have just tried pinging a page that does exist
www.nba.com/standings and it too returns Name or service not known. So you will not be able to ping a path. Only the host can be pinged.– Terrance
Jan 13 at 5:38
I agree with @bistoco. I have just tried pinging a page that does exist
www.nba.com/standings and it too returns Name or service not known. So you will not be able to ping a path. Only the host can be pinged.– Terrance
Jan 13 at 5:38
@bistoco that sounds like it should be an answer!
– steeldriver
Jan 13 at 14:23
@bistoco that sounds like it should be an answer!
– steeldriver
Jan 13 at 14:23
add a comment |
1 Answer
1
active
oldest
votes
As far as i know...you ping hosts, not paths or hosts + paths.
You may try curl o wget to "ping" a host+path and parse the http code in the response.
UPDATE 1:
You may want to check the path.
For stats.nba.com/stats , host exists, but path doesn't.
Doing a curl call, i get 2 redirects
1.- http to https
2.- /stats/ to /error/, which return 200 OK instead of the expected 404 Not Found-
curl -sSL -D - stats.nba.com/stats -o /dev/null 2>&1 | grep -E '^HTTP|^Location'
Filter headers
HTTP/1.1 301 Moved Permanently
Location: https://stats.nba.com/stats
HTTP/1.1 302 Moved Temporarily
Location: https://stats.nba.com/error/
HTTP/1.1 200 OK
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109286%2fwhy-can-i-successfully-ping-stats-nba-com-and-not-stats-nba-com-stats%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As far as i know...you ping hosts, not paths or hosts + paths.
You may try curl o wget to "ping" a host+path and parse the http code in the response.
UPDATE 1:
You may want to check the path.
For stats.nba.com/stats , host exists, but path doesn't.
Doing a curl call, i get 2 redirects
1.- http to https
2.- /stats/ to /error/, which return 200 OK instead of the expected 404 Not Found-
curl -sSL -D - stats.nba.com/stats -o /dev/null 2>&1 | grep -E '^HTTP|^Location'
Filter headers
HTTP/1.1 301 Moved Permanently
Location: https://stats.nba.com/stats
HTTP/1.1 302 Moved Temporarily
Location: https://stats.nba.com/error/
HTTP/1.1 200 OK
add a comment |
As far as i know...you ping hosts, not paths or hosts + paths.
You may try curl o wget to "ping" a host+path and parse the http code in the response.
UPDATE 1:
You may want to check the path.
For stats.nba.com/stats , host exists, but path doesn't.
Doing a curl call, i get 2 redirects
1.- http to https
2.- /stats/ to /error/, which return 200 OK instead of the expected 404 Not Found-
curl -sSL -D - stats.nba.com/stats -o /dev/null 2>&1 | grep -E '^HTTP|^Location'
Filter headers
HTTP/1.1 301 Moved Permanently
Location: https://stats.nba.com/stats
HTTP/1.1 302 Moved Temporarily
Location: https://stats.nba.com/error/
HTTP/1.1 200 OK
add a comment |
As far as i know...you ping hosts, not paths or hosts + paths.
You may try curl o wget to "ping" a host+path and parse the http code in the response.
UPDATE 1:
You may want to check the path.
For stats.nba.com/stats , host exists, but path doesn't.
Doing a curl call, i get 2 redirects
1.- http to https
2.- /stats/ to /error/, which return 200 OK instead of the expected 404 Not Found-
curl -sSL -D - stats.nba.com/stats -o /dev/null 2>&1 | grep -E '^HTTP|^Location'
Filter headers
HTTP/1.1 301 Moved Permanently
Location: https://stats.nba.com/stats
HTTP/1.1 302 Moved Temporarily
Location: https://stats.nba.com/error/
HTTP/1.1 200 OK
As far as i know...you ping hosts, not paths or hosts + paths.
You may try curl o wget to "ping" a host+path and parse the http code in the response.
UPDATE 1:
You may want to check the path.
For stats.nba.com/stats , host exists, but path doesn't.
Doing a curl call, i get 2 redirects
1.- http to https
2.- /stats/ to /error/, which return 200 OK instead of the expected 404 Not Found-
curl -sSL -D - stats.nba.com/stats -o /dev/null 2>&1 | grep -E '^HTTP|^Location'
Filter headers
HTTP/1.1 301 Moved Permanently
Location: https://stats.nba.com/stats
HTTP/1.1 302 Moved Temporarily
Location: https://stats.nba.com/error/
HTTP/1.1 200 OK
edited Jan 14 at 2:16
answered Jan 14 at 1:42
bistocobistoco
1,049717
1,049717
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109286%2fwhy-can-i-successfully-ping-stats-nba-com-and-not-stats-nba-com-stats%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
As far as i know...you ping
hosts, notpathsorhosts + paths. You may try curl o wget to "ping" a host+path and parse the http code in the response.– bistoco
Jan 13 at 4:54
I agree with @bistoco. I have just tried pinging a page that does exist
www.nba.com/standingsand it too returnsName or service not known. So you will not be able to ping a path. Only the host can be pinged.– Terrance
Jan 13 at 5:38
@bistoco that sounds like it should be an answer!
– steeldriver
Jan 13 at 14:23