Thanks DON for your feedback.
if you can help me on below thread that will solve this problem of mine
the components which i asked to ignore are really not important
No. This thread is discussing one topic and your other thread is discussing a different topic. Do not ask us to read another thread to understand the problem you are presenting in this thread. If you are saying this thread is a duplicate of the other thread, I'll be happy to close this thread for you!
You don't specify how a URL is supposed to be shortened in either thread and I'm not very good at making wild guesses about how to meet unspecified requirements.
If you can't explain the rules used to shorten a URL to us in English, we can only guess at what you want to be done. And, I don't see any logical reason why the three URLs:
should all be reduced to the single shortened URL:
And, your other thread with various unspecified text changes between the given input sample and the desired output is even harder to follow. If you're unwilling to explain exactly what transformations are to be performed and only complain that attempts to help you don't meet your constantly changing requirements, how do you expect us to be able to help you?
Dears,
i have user called dellsh
i hope to make this script
when this user recieve email
check the budy of the email about (StatusRequest)
when i find this email contain this subject
run crontab do this job (create file in my home directory called index)
thanks for your attention (1 Reply)
hi all,
how do i email a file in the body of an email rather than as an attachment ??
have a ksh script which i need to read a file and email as part of the body rather than an attachment.
my code is :
uuencode file.log | mailx -s "test"
but this sends file as an attachment.
... (2 Replies)
Dear all-
I have a requirement to send an email via email with body content which looks something below-
Email body contents
--------------------
RequestType: Update
DateAcctOpened: 1/5/2010
Note that header information and data content should be normal text..
Please advice on... (5 Replies)
Hi,
I am using mailx command to send an email and i took the body of the email from a file,
mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile
but now i want to declare the body of the email in the command itself.
I have tried with the following command but... (4 Replies)
Hi
I want to able to attach a file to a email and send it with a body
the body of the email is within the "body" file, and the attachment in "atch"
if i send like below it will send the email correctly
/usr/sbin/sendmail me@you.com< body
And when i send the attachment alone... (3 Replies)
I have a oracle sh script test.sh
#!/bin/bash
R=`sqlplus -S *****/*********@dfsdf <<ENDOFSQL
set serveroutput on size unlimited;
execute DBMS_SNAPSHOT.REFRESH( '"MIS_ADMIN"."MV_SURVEY_UNITS_CENSUS"','F');
execute DBMS_SNAPSHOT.REFRESH( '"MIS_ADMIN"."MV_SURVEY_UNITS_CENSUS_PART"','F');... (1 Reply)
Hi,
I have written shell program to send email as below -
#!/bin/ksh
filename=`ls -ltrh *.Z`
echo $filename |mailx -s "FOR TESTING" rahul.b@infotech.net
I am getting the email but email body is -
-rw-rw-r-- 1 bahulra dba 173M Mar 22 04:37 corphist.txt.Z -rw-rw-r-- 1 bahulra dba 107M... (3 Replies)
I have fetched a couple of emails and stored then in /fetch/mail/oracle.txt, the displayed content is
Date:
From:
Subject:
To:
Content-Type:
---body -----
---------
Date:
From:
Subject:
To:
Content-Type:
----body -----
------
Date:
From:
I want to retrieve the body only from... (3 Replies)
Hello,
I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Hi Team,
While sending the email using the mutt command, mail body not appearing properly and attachment it is showing without line breaks and i used the CSS Style (nowrapper )it is working fine.
in this case how to handle the email body, please help me. (1 Reply)
Discussion started by: bmk123
1 Replies
LEARN ABOUT DEBIAN
http::recorder
HTTP::Recorder(3pm) User Contributed Perl Documentation HTTP::Recorder(3pm)NAME
HTTP::Recorder - record interaction with websites
SYNOPSIS
Using HTTP::Recorder as a Web Proxy
Set HTTP::Recorder as the user agent for a proxy, and it rewrites HTTP responses so that additional requests can be recorded.
The Proxy Script
For quick start, run the httprecorder script
httprecorder
This will open a local proxy on port 8080, and will dump the recorded traffic to a file named http_traffic in the current directory. use
the -help parameter for usage info
Start the proxy script, then change the settings in your web browser so that it will use this proxy for web requests. For more information
about proxy settings and the default port, see HTTP::Proxy.
The script will be recorded in the specified file, and can be viewed and modified via the control panel.
For better control, use this example:
#!/usr/bin/perl
use HTTP::Proxy;
use HTTP::Recorder;
my $proxy = HTTP::Proxy->new();
# create a new HTTP::Recorder object
my $agent = new HTTP::Recorder;
# set the log file (optional)
$agent->file("/tmp/myfile");
# set HTTP::Recorder as the agent for the proxy
$proxy->agent( $agent );
# start the proxy
$proxy->start();
Start Recording
Now you can use your browser as your normally would, and your actions will be recorded in the file you specified. Alternatively, you can
start recording from the Control Panel.
Using the Control Panel
If you have Javascript enabled in your browser, go to the HTTP::Recorder control URL (http://http-recorder by default), optionally type a
URL into the "Goto page" field, and click "Go".
In the new window, interact with web sites as you normally do, including typing a new address into the address field. The Control Panel
will be updated after each recorded action.
The Control Panel allows you to modify, delete, or save your script.
SSL sessions
As of version 0.03, HTTP::Recorder can record SSL sessions.
To begin recording an SSL session, go to the control URL (http://http-recorder/ by default), and enter the initial URL. Then, interact
with the web site as usual.
Script output
By default, HTTP::Recorder outputs WWW::Mechanize scripts.
However, you can override HTTP::Recorder::Logger to output other types of scripts.
Functions
new
Creates and returns a new HTTP::Recorder object, referred to as the 'agent'.
$agent->prefix([$value])
Get or set the prefix string that HTTP::Recorder uses for rewriting responses.
$agent->control([$value])
Get or set the URL of the control panel. By default, the control URL is 'http-recorder'.
The control URL will display a control panel which will allow you to view and edit the current script.
$agent->logger([$value])
Get or set the logger object. The default logger is a HTTP::Recorder::Logger, which generates WWW::Mechanize scripts.
$agent->ignore_favicon([0|1])
Get or set ignore_favicon flag that causes HTTP::Recorder to skip logging requests favicon.ico files. The value is 1 by default.
$agent->file([$value])
Get or set the filename for generated scripts. The default is '/tmp/scriptfile'.
Bugs, Missing Features, and other Oddities
Javascript
WWW::Mechanize can't play back Javascript actions, and HTTP::Recorder doesn't record them.
Why are my images corrupted?
HTTP::Recorder only tries to rewrite responses that are of type text/*, which it determines by reading the Content-Type header of the
HTTP::Response object. However, if the received image gives the wrong Content-Type header, it may be corrupted by the recorder. While
this may not be pleasant to look at, it shouldn't have an effect on your recording session.
See Also
See also LWP::UserAgent, WWW::Mechanize, HTTP::Proxy.
Requests & Bugs
Please submit any feature requests, suggestions, bugs, or patches at http://rt.cpan.org/, or email to bug-HTTP-Recorder@rt.cpan.org.
If you're submitting a bug of the type "X doesn't record correctly," be sure to include a (preferably short and simple) HTML page that
demonstrates the problem, and a clear explanation of a) what it does that it shouldn't, and b) what it should do instead.
Author
Copyright 2003-2005 by Linda Julien <leira@cpan.org>
Maintained by Shmuel Fomberg <semuelf@cpan.org>
Released under the GNU Public License.
perl v5.14.2 2012-04-23 HTTP::Recorder(3pm)