bib has asked for the wisdom of the Perl Monks concerning the following question:
I'm new at this and maybe not the best to describe my problem! Here I go anyway.
Via LIVE HTTP Header I have found out that when logging into http://www.jp.dk (javascript form) my browser is sending a loooooong HTTPS url to the server. When I manually use this url and afterwards try to open a need-to-pay-for-article, everything works perfectly.However, when I have my robot do exactly the same, it doesn't work:
my $url = 'https://polid.jppol.dk/login.aspx?...blablabla...__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=...blablabla...&ctl00%24MainContent%24Login1%24UserName=MYUSERNAME&ctl00%24MainContent%24Login1%24Password=MYPASSWORD&ctl00%24MainContent%24Login1%24LoginButton=Log+ind';
my $browser = LWP::UserAgent->new(keep_alive=>1, ssl_opts => { verify_hostname => 1 });
my $response = $browser->post( $url );
$response = $browser->get('http://www.jyllands-posten.dk/protected/premium/indland/ECE5603687/ombudsmand-loefter-finger-over-for-rigets-embedsmaend/');
print $response->content;
What code is generally necessary when sending a https-url?
Is it a problem that my username (which is contained in the https-url) includes a '@' which is converted to '%40'?
I have been searching for an answer for two days now :-( So I really hope you can help me out.
Thanks in advance!
Bib
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: https javascript form
by PerlSufi (Friar) on Jun 12, 2013 at 15:32 UTC | |
by bib (Initiate) on Jun 12, 2013 at 17:24 UTC | |
by bib (Initiate) on Jun 12, 2013 at 17:55 UTC | |
by PerlSufi (Friar) on Jun 12, 2013 at 19:26 UTC | |
by bib (Initiate) on Jun 12, 2013 at 19:58 UTC | |
by PerlSufi (Friar) on Jun 12, 2013 at 21:01 UTC | |
by Anonymous Monk on Jun 13, 2013 at 13:49 UTC | |
by PerlSufi (Friar) on Jun 13, 2013 at 14:08 UTC | |
by Anonymous Monk on Jun 13, 2013 at 18:18 UTC | |
|