How to resolve the algorithm HTTPS/Authenticated step by step in the Run BASIC programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm HTTPS/Authenticated step by step in the Run BASIC programming language
Table of Contents
Problem Statement
The goal of this task is to demonstrate HTTPS requests with authentication. Implementations of this task should not use client certificates for this: that is the subject of another task.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm HTTPS/Authenticated step by step in the Run BASIC programming language
Source code in the run programming language
html "
LOGIN
UserName "
TEXTBOX #userName, ""
html " Password: "
PasswordBox #passWord, ""
html " "
button #si, "Signin", [doSignin]
html " "
button #ex, "Exit", [exit]
html "
"
WAIT
[doSignin]
loginUserName$ = trim$(#userName contents$())
loginPassWord$ = trim$(#passWord contents$())
if (loginUserName$ = "admin" and loginPassWord$ = "admin" then
print "Login ok"
else
print "invalid User or Pass"
cls
goto [loop]
end if
print Platform$ ' OS where Run BASIC is being hosted
print UserInfo$ ' Information about the user's web browser
print UserAddress$ ' IP address of the user
[exit]
end
You may also check:How to resolve the algorithm Floyd's triangle step by step in the JavaScript programming language
You may also check:How to resolve the algorithm Reverse a string step by step in the M2000 Interpreter programming language
You may also check:How to resolve the algorithm Smith numbers step by step in the Delphi programming language
You may also check:How to resolve the algorithm Hofstadter Q sequence step by step in the Maxima programming language
You may also check:How to resolve the algorithm Permutation test step by step in the XPL0 programming language