Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uri::fetch::response(3pm) [debian man page]

URI::Fetch::Response(3pm)				User Contributed Perl Documentation				 URI::Fetch::Response(3pm)

NAME
URI::Fetch::Response - Feed response for URI::Fetch SYNOPSIS
use URI::Fetch; my $res = URI::Fetch->fetch('http://example.com/atom.xml') or die URI::Fetch->errstr; print $res->content; DESCRIPTION
URI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch. USAGE
$res->content The contents of the feed. $res->uri The URI of the feed. If the feed was moved, this reflects the new URI; otherwise, it will match the URI that you passed to fetch. $res->etag The ETag that was returned in the response, if any. $res->last_modified The Last-Modified date (in seconds since the epoch) that was returned in the response, if any. $res->status The status of the response, which will match one of the following enumerations: o URI::Fetch::URI_OK() o URI::Fetch::URI_MOVED_PERMANENTLY() o URI::Fetch::URI_GONE() o URI::Fetch::URI_NOT_MODIFIED() $res->http_status The HTTP status code from the response. $res->http_response The HTTP::Response object returned from the fetch. $res->is_success $res->is_redirect $res->is_error Wrappers around the "$res->response" methods of the same name, for convenience. $res->content_type The Content-Type header from the response. AUTHOR &; COPYRIGHT Please see the URI::Fetch manpage for author, copyright, and license information. perl v5.12.4 2011-08-29 URI::Fetch::Response(3pm)

Check Out this Related Man Page

URI::data(3pm)						User Contributed Perl Documentation					    URI::data(3pm)

NAME
URI::data - URI that contains immediate data SYNOPSIS
use URI; $u = URI->new("data:"); $u->media_type("image/gif"); $u->data(scalar(`cat camel.gif`)); print "$u "; open(XV, "|xv -") and print XV $u->data; DESCRIPTION
The "URI::data" class supports "URI" objects belonging to the data URI scheme. The data URI scheme is specified in RFC 2397. It allows inclusion of small data items as "immediate" data, as if it had been included externally. Examples: data:,Perl%20is%20good data:image/gif;base64,R0lGODdhIAAgAIAAAAAAAPj8+CwAAAAAI AAgAAAClYyPqcu9AJyCjtIKc5w5xP14xgeO2tlY3nWcajmZZdeJcG Kxrmimms1KMTa1Wg8UROx4MNUq1HrycMjHT9b6xKxaFLM6VRKzI+p KS9XtXpcbdun6uWVxJXA8pNPkdkkxhxc21LZHFOgD2KMoQXa2KMWI JtnE2KizVUkYJVZZ1nczBxXlFopZBtoJ2diXGdNUymmJdFMAADs= "URI" objects belonging to the data scheme support the common methods (described in URI) and the following two scheme-specific methods: $uri->media_type( [$new_media_type] ) Can be used to get or set the media type specified in the URI. If no media type is specified, then the default "text/plain;charset=US-ASCII" is returned. $uri->data( [$new_data] ) Can be used to get or set the data contained in the URI. The data is passed unescaped (in binary form). The decision about whether to base64 encode the data in the URI is taken automatically, based on the encoding that produces the shorter URI string. SEE ALSO
URI COPYRIGHT
Copyright 1995-1998 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-02-11 URI::data(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

'less' command response is garbled

Helo , I m using RHEL 4. If I run 'ls -laF | more', response is properly display. but when I run If I run 'ls -laF | less', the response is garbled what to do to remove this? Regards, Amit (4 Replies)
Discussion started by: amitpansuria
4 Replies

2. Shell Programming and Scripting

SED remove line feed and add to certain area

Hi All, I have a xml file and requirement is to remove the line feed and add line feed after some element. <?xml version="1.0" ?> <AUDITRECORDS> <CARF> <HED> <VN1>20090616010622</VN1> <VN2>0</VN2> <VN3>1090</VN3> <VN4>CONFIG_DATA</VN4> ... (8 Replies)
Discussion started by: sreejitnair123
8 Replies

3. SCO

Partition Resize / Creation

Hello, I'm new to SCO and I require some help... I have an OLD HD which is about to die and I want to replace it with a new HD. When I clone the HD with either Acronis or Ghost it wont allow me to resize the UNIX partition and I'm stuck with 80% of the new drive as unused space. I... (7 Replies)
Discussion started by: dochost
7 Replies

4. Shell Programming and Scripting

Fetch a value of particular parameter from a log

Fetch a value of particular parameter from a log. for exapmle, i have the below line in the log. now i would like to grep name and fetch only the values of name . here in this case i would like to take out only aps and prabhu. someone please help me on this. (5 Replies)
Discussion started by: apsprabhu
5 Replies

5. Shell Programming and Scripting

Capturing text & putting it in different variables

Dear friends, I have following text in a variable. /backup/rem1/10122010/res From this value of variable i want to take each text in different variables e.g. a=backup b=rem1 c=10122010 d=res please guide me to do so. Thank you in advance Anushree (5 Replies)
Discussion started by: anushree.a
5 Replies

6. Shell Programming and Scripting

Fetch data from a particular location

I want to fetch value from a particular location from a file but in each line in the file it appears at a different position so i tried using variable with cut command but it is not working properly. The code i have written is #!/bin/sh cat Sri1.log | while read d2 do grep -w... (9 Replies)
Discussion started by: Prachi Gupta
9 Replies

7. Shell Programming and Scripting

Fetch data between two dates from a file

Hi All, I m new to this forum & UNix too. currently i have a requirement which can fetch data from a logfile between two dates or timestamp. for example: 1. data from 2012 Jun to 2012 Jul 2. data from 2012 Jun to 2012 Jul 07 3. data from 2012 Jun 16 10:20 to 2012 Jul 03 10:10 Please... (7 Replies)
Discussion started by: KDMishra
7 Replies

8. Shell Programming and Scripting

Sort numbers which has colon (:) in between

Although i tried multiple option i couldn't find a way to get the rigt ouput. Say i have the following data cat file.txt C request C response C request C response The output should look like (9 Replies)
Discussion started by: varu0612
9 Replies

9. Shell Programming and Scripting

Fetch entries with tags with editing in existing code

Hi all I have to make some changes in the following code to fetch some more entries in the attached file. awk 'k>0 {if (a && k==2) { print a":"a":"a; a=a=a="";} a=a?a" "$0:$0; k=0;} /^# Drug_Target_.*_Gene_Name/ {k=3;} /^# Generic/ {k=1;} /^# Brand_Name/ {k=2;} END {if (a) print a" "a" "a;}'... (6 Replies)
Discussion started by: manigrover
6 Replies

10. Shell Programming and Scripting

Fetch entries in front of specific word till next word

Hi all I have following file which I have to edit for research purpose file:///tmp/moz-screenshot.png body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: &quot;Liberation Sans&quot;; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
Discussion started by: Priyanka Chopra
15 Replies

11. Shell Programming and Scripting

Request to check:Fetch certain entries

Hi all. Kindly check it it's urgent!! I have one big file from which which I have to fetch certain data I have attached a small part of this file. from the attached file, I have to fetch and arrange data in 3 columns 1 Generic name 2. Brand names 3. Drug... (10 Replies)
Discussion started by: manigrover
10 Replies

12. Shell Programming and Scripting

[Solved] Need Help in reading Response file

Hi All, I have a requirement to read response file which looks like below Ex: NAME=SAM DOB=01/01/1980 ADDRESS= 7658 James Street NewYork 0000 Now, I need to take NAME, DOB, ADDRESS into variables I am fine taking NAME and DOB I need help on how can I... (6 Replies)
Discussion started by: mallak
6 Replies

13. Shell Programming and Scripting

Fetch the latest filename shell script

Hi I want to fetch the latest file form the list example example= filename RATE_STATE_SETUPS.20151222.ccyymmdd.hhmmss.txt File pick which have latest ccyymmdd.hhmmss list of file in directory are RATE_STATE_SETUPS.20151222.20151222.170101.txt... (5 Replies)
Discussion started by: MOHANP12
5 Replies

14. Shell Programming and Scripting

Unable to source file in my script

Hi, ls -ltrq res.file -rwxrwxr-x 1 ora install 4278 Nov 30 07:19 res.file $ more test.sh source res.file $ ./test.sh ./test.sh: .: res.file: cannot open $ id uid=600000014(ora) gid=63855(install) uname -a SunOS mymac 5.11 11.2 sun4v sparc sun4v The same thing works fine on a... (7 Replies)
Discussion started by: mohtashims
7 Replies

15. UNIX for Beginners Questions & Answers

How to fetch specific data from a file.?

Hi , I have a file which contains 2 days logs(here it is 24 and 25) I want to list data only for date 25 fron the file. please suggest me how should i get this. file content mentioned below 17-05-24 Name Succ Fail 00:00:29 ... (5 Replies)
Discussion started by: scriptor
5 Replies