HTTPS/Authenticated: Difference between revisions
m
Added the Sidef language
(Adds Clojure solution) |
m (Added the Sidef language) |
||
Line 341:
end</lang>
[[File:ClientAuthorizationRunBasic.png]]
=={{header|Sidef}}==
<lang ruby>require 'WWW::Mechanize'
var mech = %s'WWW::Mechanize'.new(
cookie_jar => Hash.new,
agent => 'Mozilla/5.0',
);
mech.get('https://login.yahoo.com/');
mech.submit_form(
form_id => 'mbr-login-form', # form id
fields => Hash.new(
'login' => 'XXXXXX',
'passwd' => 'YYYYYY',
));</lang>
=={{header|Tcl}}==
|