HTTPS/Authenticated: Difference between revisions
Content added Content deleted
Line 26: | Line 26: | ||
<lang bacon>OPTION TLS TRUE |
<lang bacon>OPTION TLS TRUE |
||
website$ = " |
website$ = "website.com" |
||
username$ = "nobody" |
username$ = "nobody" |
||
password$ = "ignore" |
password$ = "ignore" |
||
Line 32: | Line 32: | ||
OPEN website$ & ":443" FOR NETWORK AS connection |
OPEN website$ & ":443" FOR NETWORK AS connection |
||
SEND "GET / |
SEND "GET / HTTP/1.1\r\nHost: " & website$ & "\r\nAuthorization: Basic " & B64ENC$(username$ & ":" & password$) & "\r\n\r\n" TO connection |
||
WHILE WAIT(connection, 2000) |
WHILE WAIT(connection, 2000) |