Dear monks,
I have to extract content in the web page by post method. If 'http' site it's working. In 'https' site. I am getting error. please see the below code and tell me the changes.
Thanks in advace
use LWP::UserAgent; use HTTP::Request; $username = "xxx"; $password = "xxx"; $url = 'https://adwords.google.com/select/TrafficEstimatorSandbox'; $url_login = 'login.userid='.$username.'&login.password='.$password; my $ua = LWP::UserAgent->new; my $request = HTTP::Request->new(POST => $url); $request->content_type("application/x-www-form-urlencoded"); $request->content($url_login); my $response = $ua->request($request); if ($response->is_success()) { print $response->content; } else { print $response->status_line, " <URL:$url>\n"; }
In reply to How to extract page content in https site? by gube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |