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. Advertisements

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. Mickey Segal
    Replies:
    24
    Views:
    908
    Sudsy
    Nov 9, 2004
  2. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,386
    Mark Rae
    Dec 21, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,853
    Smokey Grindel
    Dec 2, 2006
  4. olivier HARO

    a simple wget in C language?

    olivier HARO, Oct 14, 2004, in forum: C Programming
    Replies:
    10
    Views:
    1,986
    Ilja Booij
    Nov 3, 2004
  5. Ruby Baby
    Replies:
    3
    Views:
    204
    Imobach González Sosa
    Feb 3, 2004
  6. Junkone
    Replies:
    1
    Views:
    151
    Stefano Crocco
    Sep 18, 2008
  7. Replies:
    2
    Views:
    261
    Peter J. Holzer
    Jul 21, 2007
  8. Replies:
    5
    Views:
    665
    Rajiv Gupta
    Sep 26, 2012
Loading...