Why can I successfully ping stats.nba.com and not stats.nba.com/stats












0















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










share|improve this question


















  • 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











  • 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
















0















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










share|improve this question


















  • 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











  • 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














0












0








0


1






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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 13 at 4:35









Scott HorvathScott Horvath

1




1








  • 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











  • 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














  • 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











  • 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








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










1 Answer
1






active

oldest

votes


















1














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






share|improve this answer

























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    1














    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






    share|improve this answer






























      1














      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






      share|improve this answer




























        1












        1








        1







        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






        share|improve this answer















        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







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 14 at 2:16

























        answered Jan 14 at 1:42









        bistocobistoco

        1,049717




        1,049717






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to make a Squid Proxy server?

            第一次世界大戦

            Touch on Surface Book