lwp::simple get (why it would stop working along with wget when fetch still works)

Discussion in 'Perl Misc' started by rockerd@gmail.com, Jul 18, 2007.

  1. Guest

    Hi Perl People,
    Something recently changed on a site that I was fetching and parsing
    from with lwp::simple.
    Here is the thing: For the longest time I was using get() to grab a
    http: site and store it in a scalar which I parsed later. Suddenly I
    get an empty but defined scalar with: $html = get($url);

    More: when I use fetch on a freebsd system it pulls the page to text
    without any problems but when I use wget on a linux system I get a
    blank file. Everything used to work. I tried changing my user-agent
    headers and have had no luck. The only thing I can see is that the
    file has an unknown length.. but I don't know what to do.

    Thanks for the advice,
    Rocker
     
    , Jul 18, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,078
    Smokey Grindel
    Dec 2, 2006
  2. olivier HARO

    a simple wget in C language?

    olivier HARO, Oct 14, 2004, in forum: C Programming
    Replies:
    10
    Views:
    1,646
    Ilja Booij
    Nov 3, 2004
  3. Yang
    Replies:
    6
    Views:
    3,753
  4. Replies:
    2
    Views:
    134
    Peter J. Holzer
    Jul 21, 2007
  5. Replies:
    5
    Views:
    529
    Rajiv Gupta
    Sep 26, 2012
Loading...

Share This Page