Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Just another Perl shrine
 
PerlMonks  

Re: Can you help a french user ?

by Gangabass (Priest)
on Apr 07, 2013 at 14:27 UTC ( #1027375=note: print w/ replies, xml ) Need Help??


in reply to Can you help a french user ?

As I see you need to POST instead of GET.

And remember Life is short so use WWW::Mechanize; It will automatically work with cookies for you, process forms, links etc.

use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->agent_alias("Windows IE 6"); $mech->get($base); $mech->submit_form( with_fields => { login => $user, password => $pass, 'btn_login.x' => 66, 'btn_login.y' => 17, }, );


Comment on Re: Can you help a french user ?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027375]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-04-23 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (555 votes), past polls