in reply to Help with Header stripping
Had you used LWP::Simple, you would get exactly the content you require like this:
If you need more complex queries you might need to use LWP::UserAgent, and you will find the exact value you require (i.e. content without the headers) in the content method of HTTP::Result object you will get back.use LWP::Simple; my $val=get "http://some/url/somewhere"; open(OUT,">some_file_name") || die "Could not save to some_file_name" +$!\n"; binmode(OUT); # you only really need this sometimes. BStS. print OUT $val; close(OUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help with Header stripping
by Traku (Initiate) on Apr 01, 2004 at 18:58 UTC | |
by matija (Priest) on Apr 01, 2004 at 19:19 UTC | |
by Traku (Initiate) on Apr 01, 2004 at 20:21 UTC | |
by matija (Priest) on Apr 01, 2004 at 20:38 UTC | |
by Traku (Initiate) on Apr 03, 2004 at 04:16 UTC |