Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Getting all Headers

by naikonta (Curate)
on Feb 08, 2008 at 00:21 UTC ( #666885=note: print w/replies, xml ) Need Help??

in reply to Re: Getting all Headers
in thread Getting all Headers

I use LWP::UserAgent version 2.036 from distribution libwww-perl-5.808. The method progress was added since libwww-perl-5.806. Upgrade your version and try again. I wonder however my code runs at all with libwww-perl-5.805 (that included LWP::UA 2.033 which didn't provide method progress yet).

Update: How stupid of me. My code runs with LWP::UA 2.033 because the method progress isn't called at all

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Replies are listed 'Best First'.
Re^3: Getting all Headers
by Yappo (Novice) on Feb 09, 2008 at 19:27 UTC
    I upgraded and succeeded to make this work, unfortunately this method does not bring the result I need using headers_as_string.
    I will give you an example:
    has a video inside.
    There is no direct link to this video in the HTML source, the location will only be sent within the headers.
    Using LWP::UserAgent with method progress does not bring this URL which is as follows (from LiveHTTPheaders-log, snippet from header): GET /media/96/4efec90e3f12d631b4f5b490db152596.flv HTTP/1.1 Host: ...
    Would it be possible to get the "host"-information and URL of the video from the headers using LWP or do I have to use another module or method?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://666885]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-10-26 23:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.