newbie LWP::UserAgent questions

newbie LWP::UserAgent questions

am 14.08.2006 02:10:14 von a

Hi
I would like to use LWP::UserAgent to login the web site and process the web
content. Then I should use $ua -> credentials($netloc, $realm, $uname,
$pass)
What is $netloc, $realm, $uname, and $pass?
Can someone post an example to demonstrate?
Thanks

newbie LWP::UserAgent questions--MULTIPOSTED

am 14.08.2006 02:26:19 von usenet.cop

"a" wrote:
>> [ snip and ignore MULTIPOSTED message ]

************************************************************ **********
********** PLEASE DO NOT RESPOND TO THIS THREAD ***********
************************************************************ **********

This message has been multiposted as indicated by these message IDs:



This is the 1st auto-detected multiposted message by this author.

############################################################ ##########
# TO THE USENET COMMUNITY: This message has been multiposted, which #
# is universally considered rude. Therefore, it is requested that #
# you DO NOT reply to this thread. Doing so only encourages rudeness.#
# #
# NOTE: This "Multipost Detector" has been recently-deployed as a #
# service to the Perl community. Questions or comments are welcome #
# (just reply to this message). See the NAQ at the end of this post. #
############################################################ ##########

############################################################ ##########
# TO THE ORIGINAL POSTER (OP): You have posted a multiposted message.#
# (see below for an explanation of what that is and why it is bad). #
# Many regular participants in technical newsgroups will not respond #
# to a multiposted message if they realize it is multiposted. #
# #
# This thread is therefore (probably) burned (meaning you won't get #
# any helpful replies). If you wish, you may open a new thread which #
# conforms to ordinary standards of usenet etiquette (see below). #
# #
# This is NOT a flame. This is a COURTESY notice to usenet & the OP. #
# Other participants are respectfully requested to NOT flame, ignore #
# or killfile the OP unless s/he persists in multiposting. #
############################################################ ##########

############################################################ ##########
# WHAT IS MULTIPOSTING ? If you post the same question to two (or #
# more) different newsgroups as separate messages (without #
# indicating that you have done so) then you have multiposted. This #
# is NEVER an acceptable practice in usenet. There are two things #
# which will get you killfiled in a hurry--you can flame a respected #
# group participant (like flaming Randal in a Perl group) or you can #
# multipost. These are usenet mortal sins which you should avoid if #
# you wish to have a productive usenet experience. #
# #
# WHY IS MULTIPOSTING RUDE? A question posted in one newsgroup might #
# receive a prompt and expert reply, because some nice person is #
# kind enough to provide this assistance (free of charge). However, #
# if the question is multiposted to another newsgroup, ANOTHER nice #
# person might spend his/her time providing the SAME assistance, #
# unaware that the question has ALREADY been answered elsewhere. #
# This WASTES THE TIME of the second person, who was only trying to #
# be helpful but was actually 'tricked' into wasting his/her time. #
# The second person has NO WAY to know the question was multiposted #
# (and already answered) elsewhere unless s/he happens to visit the #
# other group and notice the multipost (before replying). #
# #
# Most new posters are given the benefit of doubt and are assumed #
# to have violated these conventions due to a lack of understanding. #
# Posters who persist in such behavior, however, will likely be #
# flamed, ignored, and/or killfiled by regular group participants. #
############################################################ ##########

############################################################ ##########
# ABOUT THIS REPLY: This reply was posted by an automated process #
# which scans selected newsgroups for evidence of multiposting. #
# #
# This is a service to the usenet community to let folks know when #
# a message has been multiposted. Many folks prefer not to reply #
# to such messages, but they might do so 'accidentally' because #
# they don't realize the message is multiposted. #
# #
# This reply is also a service to the OP (it is not an attempt to #
# be "mean" to the OP). Hopefully the OP will become more aware of #
# usenet etiquette. Someone who takes offense at helpful correction #
# will probably not have a very satisfying usenet experience. #
############################################################ ##########

############################################################ ##########
# WHEN/HOW IS MULTIPOSTING OK? If you post in one newsgroup #
# but later realize (for whatever reason) that you would prefer to #
# post the message elsewhere, it is OK to do so provided your new #
# message references your original post (preferably with a link). #
# You should also respond to your original post indicating it has #
# been re-posted elsewhere (preferably with a link). This gives both #
# newsgroup communities visibility to the others' work. If you post #
# in this manner, this process will NOT flag it as multiposted. #
############################################################ ##########

############################################################ ##########
# REFERENCES: The following information may be helpful: #
# http://www.faqs.org/faqs/usenet/primer/part1/ #
# http://www.catb.org/~esr/faqs/smart-questions.html #
# http://web.presby.edu/~nnqadmin/nnq/nquote.html #
# http://www.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines. html #
############################################################ ##########

############################################################ ##########
# WHY DOES THIS AUTOMATED PROCESS EXIST? Mainly because of Google #
# Groups. GG has made it very easy for anybody to post anything in #
# usenet (and many GG users don't know much about usenet, and may #
# not even realize they're posting to a worldwide network which has #
# nothing to do with Google). Many folks (especially GG users) are #
# not familiar with usenet etiquette conventions and thus annoy #
# other participants (the very people whom they are asking for help).#
# This is counterproductive to both the OP and the usenet community #
# at large. Posters are encouraged to consult the references above #
# to learn how to ask a good question in a polite manner; doing so #
# is beneficial to everyone (especially the OP). #
############################################################ ##########

############################################################ ##########
# NAQ (the Never Asked Questions - TEMPORARY SECTION) #
# Q-What ruleset defines a multipost? A--Two MD5 digests are #
# calculated (one forwards, one backwards) on the message body #
# and stored in a small database. If a new post (new message ID) #
# matches these digests, it's a multipost. Author and subject #
# lines are not taken into account. Reply messages are ignored. #
# Q-Are crossposts flagged? A--No. A message must have an identical #
# body but a unique message ID to be flagged. A crosspost which is #
# ALSO multiposted, however, will be flagged. I may one-day add #
# the ability to post a much milder message for crossposts between #
# Perl groups (it is rarely, if ever, appropriate to crosspost #
# between similar groups, and such crossposting is discouraged). #
# Q-What groups are scanned? A-The main Perl Groups in Google Groups,#
# namely: comp.lang.perl.misc, perl.beginners, perl.dbi.users, #
# comp.lang.perl.modules , perl.beginners.cgi, and alt.perl #
# Q-You dummy, it's EASY to defeat this scanner! A--Of course it is. #
# But it's rare to see multiposts which differ in the message body.#
# An author who deliberately tweaked the content to defeat a scan #
# reveals his/her deliberately rude intent (& should be killfiled) #
# Q-Why am I doing this? A--For a better usenet. Some folks try to #
# discourage job postings; some discourage off-topic posts. I try #
# to discourage multiposts - that's my little pet peeve (and, #
# unlike OT posts and the like, it's not obvious when it happens) #
# If you don't wish to be bothered with these auto-generated #
# responses, please killfile the scanner. #
# Q-Who wrote this program? A-- I am not trying to keep my identity #
# a big secret (it's easy enough to find out who I am, and group #
# regulars probably recognize my rants). But I choose to run this #
# scanner anonymously because some posters will be determined to #
# take offense at this. If they get mad at me, their anger may #
# spill over into future postings that I participate in. I just #
# get tired of newbies pitching tantrums any time someone offers #
# friendly and helpful correction, so I deny them an easy target. #
# #
# I will reply (under my own handle) to questions or comments #
########
msg_hash: 29 - 19f1b5b6d59c553d58bf926730e31014

Re: newbie LWP::UserAgent questions

am 14.08.2006 16:50:13 von Sherm Pendley

"a" writes:

> I would like to use LWP::UserAgent to login the web site and process the web
> content. Then I should use $ua -> credentials($netloc, $realm, $uname,
> $pass)
> What is $netloc, $realm, $uname, and $pass?
> Can someone post an example to demonstrate?

Please don't multi-post. That means, if your message is really relevant to a
variety of groups, you should just post it once, listing all of the target
groups separated by commas, instead of posting it individually to each one.

The benefit of that is that people who've already seen and/or replied to your
message in one group can skip over it when they're reading the other, and any
replies to your message will by default also be posted to all the groups.

Having said that - have a look at 'lwptut' and 'lwpcook'.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net