Perl URI를 통해 Bugzill에 로그인하려고하는데 "[email protected]&Bugzilla_password= info.
그 후에는 bugzilla에서 일부 데이터를 웹 스크랩하고 싶기 때문에 로그인해야합니다.
my $data = $scraper->scrape(
my $uri=URI->new('http://prdbugzilla.wv.mentorg.com/bugzilla/show_bug.cgi?id=22444')
);
나는 뭔가를 시도하고있다
curl --data "Bugzilla_login=USER&Bugzilla_password=PASSWORD" http://prdbugzilla.wv.mentorg.com/bugzilla/show_bug.cgi?id=19971
URI
단지 URI 객체를 빌드합니다. HTTP 요청을 생성하지 않습니다. 시도 LWP::UserAgent
하고 HTTP::Requset
대신 :
my $req = HTTP::Request->new( POST => 'http://...' );
$req->content('Bugzilla_login=USER&Bugzilla_password=PASSWORD');
그런 다음을 사용하여 요청을 보낼 수 있습니다 LWP::UserAgent
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다