For Programmers: Free Programming Magazines  


Home > Archive > LibWWW > July 2006 > Re: preferred way to get request from perl mechanize









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: preferred way to get request from perl mechanize
Peter Stevens

2006-07-10, 4:07 am

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@ch-open.ch>
> Date: Sun, July 9, 2006 1:38 pm
> To: "Aleem Mawji" <am1@mawji.org>
> -------------------------------------------------------------------------
>
> 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:
>
> requested from perl mechanize. I have the same question.
>
> into the innards of HTTP::Request. I was wondering if you could help
>
> subject.
>
>
>
>
>
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com