Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lwp-dump(1p) [debian man page]

LWP-DUMP(1p)						User Contributed Perl Documentation					      LWP-DUMP(1p)

NAME
lwp-dump - See what headers and content is returned for a URL SYNOPSIS
lwp-dump [ options ] URL DESCRIPTION
The lwp-dump program will get the resource indentified by the URL and then dump the response object to STDOUT. This will display the headers returned and the initial part of the content, escaped so that it's safe to display even binary content. The escapes syntax used is the same as for Perl's double quoted strings. If there is no content the string "(no content)" is shown in its place. The following options are recognized: --agent str Override the user agent string passed to the server. --keep-client-headers LWP internally generate various "Client-*" headers that are stripped by lwp-dump in order to show the headers exactly as the server provided them. This option will suppress this. --max-length n How much of the content to show. The default is 512. Set this to 0 for unlimited. If the content is longer then the string is chopped at the limit and the string "... (### more bytes not shown)" appended. --method str Use the given method for the request instead of the default "GET". --parse-head By default lwp-dump will not try to initialize headers by looking at the head section of HTML documents. This option enables this. This corresponds to "parse_head" in LWP::UserAgent. --request Also dump the request sent. SEE ALSO
lwp-request, LWP, "dump" in HTTP::Message perl v5.14.2 2012-01-14 LWP-DUMP(1p)

Check Out this Related Man Page

LWP-DUMP(1)						User Contributed Perl Documentation					       LWP-DUMP(1)

NAME
lwp-dump - See what headers and content is returned for a URL SYNOPSIS
lwp-dump [ options ] URL DESCRIPTION
The lwp-dump program will get the resource indentified by the URL and then dump the response object to STDOUT. This will display the headers returned and the initial part of the content, escaped so that it's safe to display even binary content. The escapes syntax used is the same as for Perl's double quoted strings. If there is no content the string "(no content)" is shown in its place. The following options are recognized: --agent str Override the user agent string passed to the server. --keep-client-headers LWP internally generate various "Client-*" headers that are stripped by lwp-dump in order to show the headers exactly as the server provided them. This option will suppress this. --max-length n How much of the content to show. The default is 512. Set this to 0 for unlimited. If the content is longer then the string is chopped at the limit and the string "... (### more bytes not shown)" appended. --method str Use the given method for the request instead of the default "GET". --parse-head By default lwp-dump will not try to initialize headers by looking at the head section of HTML documents. This option enables this. This corresponds to "parse_head" in LWP::UserAgent. --request Also dump the request sent. SEE ALSO
lwp-request, LWP, "dump" in HTTP::Message perl v5.12.5 2011-04-09 LWP-DUMP(1)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ufsdump/ufsrestore problem

I ran ufsdump as follows............... # ufsdump 9ucf /dev/rmt/0n /dev/dsk/c1t9d0s3 DUMP: Writing 63 Kilobyte records DUMP: Date of this level 9 dump: Tue 23 Oct 2007 02:19:40 PM PDT DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rdsk/c1t9d0s3 (gambler:/apps) to... (2 Replies)
Discussion started by: shorty
2 Replies

2. UNIX for Dummies Questions & Answers

ufsdump issue

I ran this dump (as root) and got the following............. # ufsdump 0f /dev/rmt/0n / DUMP: Writing 32 Kilobyte records DUMP: Date of this level 0 dump: Tue 11 Dec 2007 06:07:35 AM PST DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rdsk/c2t1d0s0 (gambler:/) to... (1 Reply)
Discussion started by: shorty
1 Replies

3. UNIX for Dummies Questions & Answers

Help rearrange the content of the file.

Hi all, I need to rearrange the content of the file. I need to move line 1 to 4, 2 to 3, 3 to 2, and 4 to 1. IPlease help. I was thinking about using head and tail command. Here is the original file. aa bb cc dd Here is what I need it to be. dd cc bb aa Thanks. (6 Replies)
Discussion started by: sirrtuan
6 Replies

4. Shell Programming and Scripting

How to print the number of lines from a file, the starting string should be passed`

Hi , I have file, which has the below content: line 100 a b c d line300 a s d f s line200 a s d a (3 Replies)
Discussion started by: little_wonder
3 Replies

5. Shell Programming and Scripting

display content between all similar tags pattern

hi, I m stuck at a point for more than 3days. My doubt is pretty simple.. I have a web page content in $content. ( got this by using LWP).. Now I want to display the content matching a pattern. I tried if($content =~ m{<div class="abc">(.*?)</div>}s){ print $1;} that will... (4 Replies)
Discussion started by: therockravi
4 Replies

6. UNIX for Dummies Questions & Answers

dump command fault

im performing the dump command : dump 0uaf /dev/hdc /home an error msg appers says: DUMP: you cant update the dumpdates file while dumping a subdirectory DUMP: the entire dump is aborted can anyone help (6 Replies)
Discussion started by: semosam
6 Replies

7. UNIX for Dummies Questions & Answers

Display the content of the unix file

cat is the normal unix command to display the content of a file. Is there any program to display the content of the file. If there is, then can you send me the code. (5 Replies)
Discussion started by: vedanjalig
5 Replies

8. Shell Programming and Scripting

file content as a part of an if-statement

Hello, I have following problem. I have the result of a database request. I preparated the result via sed, etc. as a string in a file. The string in the file is: ($3==1 || $3==2 || $3==3 || $3==4) Now I want to use the String as a command in an if-statement. So I assigned the string to a... (3 Replies)
Discussion started by: Dr_Aleman
3 Replies

9. Shell Programming and Scripting

lwp-request examples

Hi; Can i have ne sample examples of of using " lwp-request" in shell script. Is it necessary to have perl installed already in linux box for using this; Thnks; (2 Replies)
Discussion started by: ajaypadvi
2 Replies

10. Shell Programming and Scripting

perl lwp find word and print next word :)

hi all, I'm new there, I'm just playing with perl and lwp and I just successfully created a script for log in to a web site with post. I have a response but I would like to have something like this: I have in my response lines like: <div class="sender">mimi020</div> <some html code.....>... (3 Replies)
Discussion started by: vogueestylee
3 Replies

11. Shell Programming and Scripting

Check content of file

Hi All, I m very new to unix...i jus want to chk the content of file. ma requirement is if file has a content then display it else dont display or something pls specify which loop shalli use either for or while?? (20 Replies)
Discussion started by: navsan
20 Replies

12. Shell Programming and Scripting

Use the content of a file as standard input

I want to use a content of a file as standard input to a program and dump the output to a file. However, when I try the following code: ./program < input.in > output.out The output.out is empty. So, how can I handle this problem? Thanks in advance! (11 Replies)
Discussion started by: Ray Sun
11 Replies

13. Shell Programming and Scripting

Perl SCript to read file content (if else statemenet)

Hi All, I wanted to write a perl script to read the content in a file,the file content is either 0 (zero) OR 1. The idea is like this. If (content =1), then it will proceed to perform some step. and then update the file content to 0(zero) else if (content =0), it will update the content to... (11 Replies)
Discussion started by: hploh
11 Replies

14. UNIX for Beginners Questions & Answers

Subsitute string in file 1 by line n of file 2

Hello, My OS is Windows 10 and I am using Cygwin. The content of file 1 is: XXX string1 The content of file 2 is 4.156 2.312 3.527 1.687 etc.... I need to replace string 1 in file 1 by the content of line n in file 2. So the expected output is e.g.: XXX 3.527 (for n = 3) I... (14 Replies)
Discussion started by: supernono06
14 Replies