
neTTanel
New User
Sep 16, 2009, 9:04 PM
Post #3 of 3
(1646 views)
|
|
Re: [1arryb] Fetch HTML code after redirect,
[In reply to]
|
Can't Post
|
|
Hi neTTanel, A code snippet containing a sample url that illustrates this problem would be helpful. Cheers, Larry Here ya go. The main program (part of): # first call for authentication my $url = $self->{RequestParams}->{url}; $self->{RequestParams}->{url} = "some url for authen"; ($errorCode,$errorData) = $self->execHTTPRequest; $self->{RequestParams}->{url} = "some url for the search page"; $self->{RequestParams}->{cgiMethod} = 'POST'; ($errorCode,$errorData) = $self->execHTTPRequest; ## second call - search $self->{RequestParams}->{url} = "url with cgi parameters (the HTML i need is of this page"; $self->{RequestParams}->{cgiMethod} = 'GET'; ($errorCode,$errorData) = $self->execHTTPRequest; SCRIPT OF THE "BROWSER" PROGRAM: if ($method eq 'GET') { $reqObj = new HTTP::Request($method,$urlObj,$hdrObj); } else { $reqObj = new HTTP::Request($method,$urlObj,$hdrObj,$cgi_param); }
|