Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: WWW::Mechanize, how to set action

by mifflin (Curate)
on Aug 05, 2005 at 20:57 UTC ( [id://481367]=note: print w/replies, xml ) Need Help??


in reply to Re^3: WWW::Mechanize, how to set action
in thread WWW::Mechanize, how to set action

ya, i thought so too, but when i do that i get the 500 error back. So either im missing some form variable or the action im setting is plain wrong.
Is there a way with IE6 (or some other browser) to see what is being sent in a post call?
  • Comment on Re^4: WWW::Mechanize, how to set action

Replies are listed 'Best First'.
Re^5: WWW::Mechanize, how to set action
by Joost (Canon) on Aug 05, 2005 at 21:03 UTC
      I tried the BodyFilter::save and it worked fine.
      However, what I ended up using was HeaderFilter::simple.
      It gave me enough information to show what I was missing.
      Thanks for your help.
      use warnings; use strict; use Data::Dumper; use HTTP::Proxy; use HTTP::Proxy::HeaderFilter::simple; use IO::File; my $proxy = HTTP::Proxy->new(port => 8081); $proxy->host(undef); my $filter = HTTP::Proxy::HeaderFilter::simple->new(\&myfilter); $proxy->push_filter(request => $filter); $proxy->start(); sub myfilter { my ($this, $headers, $message) = @_; print $headers->as_string(); for my $pair (split(/\&/, $message->content())) { my ($key, $value) = split(/=/, $pair); $value = '' unless defined $value; printf "%s = %s\n", $key, $value; } STDOUT->flush(); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://481367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found