Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
5
Task/HTTPS-Authenticated/Lasso/https-authenticated.lasso
Normal file
5
Task/HTTPS-Authenticated/Lasso/https-authenticated.lasso
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
local(username = 'hello',password = 'world')
|
||||
local(x = curl('https://sourceforge.net'))
|
||||
#x->set(CURLOPT_USERPWD, #username + ':' + #password)
|
||||
local(y = #x->result)
|
||||
#y->asString
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
command getAuthWebResource
|
||||
libURLFollowHttpRedirects true
|
||||
libURLSetSSLVerification true
|
||||
put URL "https://user:passwd@example.basicauth.com/" into response
|
||||
put response
|
||||
end getAuthWebResource
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
command getAuthWebResource
|
||||
libURLFollowHttpRedirects true
|
||||
libURLSetSSLVerification true
|
||||
set the httpHeaders to "Authorization: Basic " && base64Encode("user:passwd")
|
||||
put URL "https://example.basicauth.com" into response
|
||||
put response
|
||||
end getAuthWebResource
|
||||
14
Task/HTTPS-Authenticated/Sidef/https-authenticated.sidef
Normal file
14
Task/HTTPS-Authenticated/Sidef/https-authenticated.sidef
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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',
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue