in reply to Re: "Request URI Too Large (The size of the required header is too large...."
in thread "Request URI Too Large (The size of the required header is too large...."

Thanks, very good point... I rewrote the code to make a post request so I could pass it into my $mech

#List page is the BASE page from which I am starting my $aspContent= $aspnet->httpRequest->content; my $req = HTTP::Request->new(POST => "$LIST_PAGE"); $req->content_type('application/x-www-form-urlencoded'); $req->content("$aspContent"); my $res = $mech->request($req); if ($res->is_success) { $content = $res->content; } print $content;

So what I assume is that this should be sent like :
POST
Host: $LIST_PAGE
User-Agent: Mozilla/5.1
Content-Type: application/x-www-form-urlencoded
Content: With the content of the asp post here.
This runs but however still returns the base page. So I am still back where I started :(

  • Comment on Re^2: "Request URI Too Large (The size of the required header is too large...."
  • Download Code

Replies are listed 'Best First'.
Re^3: "Request URI Too Large (The size of the required header is too large...."
by Corion (Patriarch) on Jun 28, 2011 at 16:13 UTC

    If your company is in the business of doing web automation, consider asking your colleagues about Wireshark or whatever other protocol sniffer they use to analyze the network traffic.

    Whenever your browser is behaving different from your Perl script, that means that the browser is sending data to the server that is different from the data your Perl script sends. Find out and remove the difference, and the server will treat you just like it treats the browser.

    Also see WWW:Scripter and/or WWW::Mechanize::Firefox.