Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/HTTP/PureBasic/http-1.basic
Normal file
17
Task/HTTP/PureBasic/http-1.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
InitNetwork()
|
||||
OpenConsole()
|
||||
|
||||
tmpdir$ = GetTemporaryDirectory()
|
||||
filename$ = tmpdir$ + "PB_tempfile" + Str(Random(200000)) + ".html"
|
||||
|
||||
If ReceiveHTTPFile("http://rosettacode.org/wiki/Main_Page", filename$)
|
||||
If ReadFile(1, filename$)
|
||||
Repeat
|
||||
PrintN(ReadString(1))
|
||||
Until Eof(1)
|
||||
Input()
|
||||
; to prevent console from closing if on windows
|
||||
CloseFile(1)
|
||||
EndIf
|
||||
DeleteFile(filename$)
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue