HTTPS/Authenticated: Difference between revisions
Content added Content deleted
(Adds Clojure solution) |
m (Added the Sidef language) |
||
Line 341: | Line 341: | ||
end</lang> |
end</lang> |
||
[[File:ClientAuthorizationRunBasic.png]] |
[[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}}== |
=={{header|Tcl}}== |