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 :(
|