Unable to fetch printer job history XML page using wget












0















My aim is, to fetch below print history (XML) page,to my Debian box using wget,but not fetching contents of page. enter image description here



Commands Used:



wget -q  http://192.168.8.93/wcd/job_history.xml


Result I got:



root@vm-debian:~/ar_lab# cat job_history.xml
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<HTML lang="en">
<HEAD>
<TITLE></TITLE>
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta content="text/javascript" http-equiv="Content-Script-Type">
<noscript>
<meta http-equiv="refresh" content="0; URL=/wcd/js_error.xml">
</noscript>
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#000000" ALINK="#ff0000" VLINK="#000000" onload="location.replace('/wcd/index.html?access=JOB_DON');" >
</BODY>
</HTML>









share|improve this question



























    0















    My aim is, to fetch below print history (XML) page,to my Debian box using wget,but not fetching contents of page. enter image description here



    Commands Used:



    wget -q  http://192.168.8.93/wcd/job_history.xml


    Result I got:



    root@vm-debian:~/ar_lab# cat job_history.xml
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
    <HTML lang="en">
    <HEAD>
    <TITLE></TITLE>
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta content="text/javascript" http-equiv="Content-Script-Type">
    <noscript>
    <meta http-equiv="refresh" content="0; URL=/wcd/js_error.xml">
    </noscript>
    </HEAD>
    <BODY BGCOLOR="#ffffff" LINK="#000000" ALINK="#ff0000" VLINK="#000000" onload="location.replace('/wcd/index.html?access=JOB_DON');" >
    </BODY>
    </HTML>









    share|improve this question

























      0












      0








      0








      My aim is, to fetch below print history (XML) page,to my Debian box using wget,but not fetching contents of page. enter image description here



      Commands Used:



      wget -q  http://192.168.8.93/wcd/job_history.xml


      Result I got:



      root@vm-debian:~/ar_lab# cat job_history.xml
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
      <HTML lang="en">
      <HEAD>
      <TITLE></TITLE>
      <meta http-equiv="Expires" content="0">
      <meta http-equiv="Pragma" content="no-cache">
      <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
      <meta content="text/javascript" http-equiv="Content-Script-Type">
      <noscript>
      <meta http-equiv="refresh" content="0; URL=/wcd/js_error.xml">
      </noscript>
      </HEAD>
      <BODY BGCOLOR="#ffffff" LINK="#000000" ALINK="#ff0000" VLINK="#000000" onload="location.replace('/wcd/index.html?access=JOB_DON');" >
      </BODY>
      </HTML>









      share|improve this question














      My aim is, to fetch below print history (XML) page,to my Debian box using wget,but not fetching contents of page. enter image description here



      Commands Used:



      wget -q  http://192.168.8.93/wcd/job_history.xml


      Result I got:



      root@vm-debian:~/ar_lab# cat job_history.xml
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
      <HTML lang="en">
      <HEAD>
      <TITLE></TITLE>
      <meta http-equiv="Expires" content="0">
      <meta http-equiv="Pragma" content="no-cache">
      <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
      <meta content="text/javascript" http-equiv="Content-Script-Type">
      <noscript>
      <meta http-equiv="refresh" content="0; URL=/wcd/js_error.xml">
      </noscript>
      </HEAD>
      <BODY BGCOLOR="#ffffff" LINK="#000000" ALINK="#ff0000" VLINK="#000000" onload="location.replace('/wcd/index.html?access=JOB_DON');" >
      </BODY>
      </HTML>






      linux wget xml






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 10 at 6:41









      ArunArun

      2071213




      2071213






















          1 Answer
          1






          active

          oldest

          votes


















          0














          It seems like your printer uses Javascript to redirect the page to the right location.



          Wget does not understand Javascript.



          The simple solution here would be for you to make the request directly to the redirected page:



          $ wget -q http://192.168.8.93/wcd/index.html?access=JOB_DON





          share|improve this answer
























          • I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

            – Arun
            Feb 11 at 11:06













          • Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

            – darnir
            Feb 11 at 12:48











          • Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

            – darnir
            Feb 11 at 12:50











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f1404060%2funable-to-fetch-printer-job-history-xml-page-using-wget%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









          0














          It seems like your printer uses Javascript to redirect the page to the right location.



          Wget does not understand Javascript.



          The simple solution here would be for you to make the request directly to the redirected page:



          $ wget -q http://192.168.8.93/wcd/index.html?access=JOB_DON





          share|improve this answer
























          • I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

            – Arun
            Feb 11 at 11:06













          • Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

            – darnir
            Feb 11 at 12:48











          • Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

            – darnir
            Feb 11 at 12:50
















          0














          It seems like your printer uses Javascript to redirect the page to the right location.



          Wget does not understand Javascript.



          The simple solution here would be for you to make the request directly to the redirected page:



          $ wget -q http://192.168.8.93/wcd/index.html?access=JOB_DON





          share|improve this answer
























          • I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

            – Arun
            Feb 11 at 11:06













          • Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

            – darnir
            Feb 11 at 12:48











          • Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

            – darnir
            Feb 11 at 12:50














          0












          0








          0







          It seems like your printer uses Javascript to redirect the page to the right location.



          Wget does not understand Javascript.



          The simple solution here would be for you to make the request directly to the redirected page:



          $ wget -q http://192.168.8.93/wcd/index.html?access=JOB_DON





          share|improve this answer













          It seems like your printer uses Javascript to redirect the page to the right location.



          Wget does not understand Javascript.



          The simple solution here would be for you to make the request directly to the redirected page:



          $ wget -q http://192.168.8.93/wcd/index.html?access=JOB_DON






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 10 at 10:17









          darnirdarnir

          588418




          588418













          • I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

            – Arun
            Feb 11 at 11:06













          • Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

            – darnir
            Feb 11 at 12:48











          • Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

            – darnir
            Feb 11 at 12:50



















          • I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

            – Arun
            Feb 11 at 11:06













          • Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

            – darnir
            Feb 11 at 12:48











          • Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

            – darnir
            Feb 11 at 12:50

















          I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

          – Arun
          Feb 11 at 11:06







          I tries this suggestion , but still no luck ( i.imgur.com/z3GcKx4.png )

          – Arun
          Feb 11 at 11:06















          Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

          – darnir
          Feb 11 at 12:48





          Please don't use images of text. It makes it very difficult to read. Update your original post with any new information

          – darnir
          Feb 11 at 12:48













          Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

          – darnir
          Feb 11 at 12:50





          Also, if you see the HTML source, it is making yet another javascript redirection. Unfortunately, you're going to have to manually follow all of these. None of the simple HTTP tools understand javascript. Selenium does, but it is too huge a project to throw at something this small.

          – darnir
          Feb 11 at 12:50


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1404060%2funable-to-fetch-printer-job-history-xml-page-using-wget%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 reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

          is 'sed' thread safe

          How to make a Squid Proxy server?