logo       

Re: preferred way to get request from perl mechanize: msg#00017

Subject: Re: preferred way to get request from perl mechanize
Aleem,

[ I've copied the list, because someone with more knowledge of the internals may be able to answer this question better than I ]

I think this is the full request, but I might be mistaken. To verify this, look at the code for mech->click() - you'll have to follow the call as it assembles the request. Maybe I missed a relevant call, but I thought that cookies were added somewhere in $mech->_modify_request( $r ).

If I've missed something, I'd be very happy if you can send me a patch ;-)

Cheers,

Peter

Aleem Mawji wrote:
Peter,

one hiccup is that i can't see the entire request.  in other words, i can
see the posted form but i don't see the cookie data being sent.  im
concerned that via all the javascript on the site i am working on,
certain cookies are being assigned values that mech would not have any
way of knowing and wanted to compare the complete post (form and cookies)
versus the complete post in http headers.

how can i view the full request (including all cookies and any other
headers)?

maybe a stupid question.

thanks again,

Aleem

-------------------------- Original Message ----------------------------
Subject: Re: preferred way to get request from perl mechanize
From:    "Peter Stevens" <peter.stevens@xxxxxxxxxx>
Date:    Sun, July 9, 2006 1:38 pm
To:      "Aleem Mawji" <am1@xxxxxxxxx>
-------------------------------------------------------------------------

Hi Aleem,

I just posted a solution to libwww (which seems to have gotten eaten in
the online archives, so I have reposted it with the
WWW::Mechanize::Debug package in the text of the message, which I also
copied to you. Hope it helps.

Cheers,

Peter

Aleem Mawji wrote:
Peter,
I am sorry to trouble you with my question.  I noticed that you asked
on
a perl forum recently for the preferred way to get what is actually
requested from perl mechanize.  I have the same question.
you also mentioned that you solved this problem by following the code
into the innards of HTTP::Request.  I was wondering if you could help
me
do the same as i have not seen anything else posted anywhere on this
subject.
regards and thank you in advance,
Aleem





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe