Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/HTTPS/BaCon/https.bacon
Normal file
15
Task/HTTPS/BaCon/https.bacon
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
OPTION TLS TRUE
|
||||
website$ = "www.google.com"
|
||||
|
||||
OPEN website$ & ":443" FOR NETWORK AS mynet
|
||||
|
||||
SEND "GET / HTTP/1.1\r\nHost: " & website$ & "\r\n\r\n" TO mynet
|
||||
WHILE WAIT(mynet, 1000)
|
||||
RECEIVE dat$ FROM mynet
|
||||
total$ = total$ & dat$
|
||||
IF REGEX(dat$, "\r\n\r\n$") THEN BREAK : ' Quit receiving data when end indicator was reached
|
||||
WEND
|
||||
|
||||
CLOSE NETWORK mynet
|
||||
|
||||
PRINT REPLACE$(total$, "\r\n[0-9a-fA-F]+\r\n", "\r\n", TRUE) : ' Remove chunk indicators from HTML data
|
||||
Loading…
Add table
Add a link
Reference in a new issue