can browse an URL but 'wget' doesn't work in console or in perl

Discussion in 'PHP' started by berners-lee, Nov 25, 2010.

  1. #1
    Hello all,

    I was writing a perl script parsing data of a webpage.

    https://wwwfile.megabank.com.tw/rates/D001/_@V_.asp

    I have no problem in browsing the URL, but 'wget' doesn't work in console or in my script ('get' of LWP::Simple). Does anyone know how to get it?

    Thanks a lot.
     
    berners-lee, Nov 25, 2010 IP
  2. underground-stockholm

    underground-stockholm Guest

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're on Linux, it's available as a package for almost all distributions. You'd install it with a command like "apt-get install wget" or "yum install wget" or similar, run as root.

    If you're on Windows, I think they have pre-compiled Wget binaries available from the wget homepage.
     
    underground-stockholm, Nov 26, 2010 IP