Home » Archimedes archive » Acorn User » AU 1997-Xmas B.adf » PD » NetPlex/!Netplex/SocketFS/Examples/Weber
NetPlex/!Netplex/SocketFS/Examples/Weber
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-Xmas B.adf » PD |
| Filename: | NetPlex/!Netplex/SocketFS/Examples/Weber |
| Read OK: | ✔ |
| File size: | 0181 bytes |
| Load address: | 0000 |
| Exec address: | 0000 |
File contents
10 Web%=OPENUP("socketfs::tcp.$.www/demon/co/uk\80")
20 IF Web%=0 THEN ERROR 0,"Cannot connect to Webserver"
30 File%=OPENOUT("ADFS::4.$.webpage")
40 BPUT#Web%, "GET /index.html"
50 BPUT#Web%,10 : REM Write end of line...
60 WHILE NOT EOF#Web%
70 BPUT#File%,BGET#Web%
80 ENDWHILE
90 CLOSE#Web% :REM Release this end of socket...
100 CLOSE#File%
110 OSCLI("settype adfs::4.$.webpage faf"):REM faf=html
4 Web%=�("socketfs::tcp.$.www/demon/co/uk\80")
4 � Web%=0 � � 0,"Cannot connect to Webserver"
$ File%=�("ADFS::4.$.webpage")
(! �#Web%, "GET /index.html"
2* �#Web%,10 : � Write end of line...
< ȕ � �#Web%
F �#File%,�#Web%
P
�
Z/ �#Web% :� Release this end of socket...
d �#File%
n5 �("settype adfs::4.$.webpage faf"):� faf=html
� 00000000 0d 00 0a 34 20 20 20 20 57 65 62 25 3d ad 28 22 |...4 Web%=.("|
00000010 73 6f 63 6b 65 74 66 73 3a 3a 74 63 70 2e 24 2e |socketfs::tcp.$.|
00000020 77 77 77 2f 64 65 6d 6f 6e 2f 63 6f 2f 75 6b 5c |www/demon/co/uk\|
00000030 38 30 22 29 0d 00 14 34 20 20 20 20 e7 20 57 65 |80")...4 . We|
00000040 62 25 3d 30 20 8c 20 85 20 30 2c 22 43 61 6e 6e |b%=0 . . 0,"Cann|
00000050 6f 74 20 63 6f 6e 6e 65 63 74 20 74 6f 20 57 65 |ot connect to We|
00000060 62 73 65 72 76 65 72 22 0d 00 1e 24 20 20 20 20 |bserver"...$ |
00000070 46 69 6c 65 25 3d ae 28 22 41 44 46 53 3a 3a 34 |File%=.("ADFS::4|
00000080 2e 24 2e 77 65 62 70 61 67 65 22 29 0d 00 28 21 |.$.webpage")..(!|
00000090 20 20 20 20 d5 23 57 65 62 25 2c 20 22 47 45 54 | .#Web%, "GET|
000000a0 20 2f 69 6e 64 65 78 2e 68 74 6d 6c 22 0d 00 32 | /index.html"..2|
000000b0 2a 20 20 20 20 d5 23 57 65 62 25 2c 31 30 20 3a |* .#Web%,10 :|
000000c0 20 f4 20 57 72 69 74 65 20 65 6e 64 20 6f 66 20 | . Write end of |
000000d0 6c 69 6e 65 2e 2e 2e 0d 00 3c 13 20 20 20 20 c8 |line.....<. .|
000000e0 95 20 ac 20 c5 23 57 65 62 25 0d 00 46 18 20 20 |. . .#Web%..F. |
000000f0 20 20 20 20 d5 23 46 69 6c 65 25 2c 9a 23 57 65 | .#File%,.#We|
00000100 62 25 0d 00 50 0a 20 20 20 20 20 ce 0d 00 5a 2f |b%..P. ...Z/|
00000110 20 20 20 20 d9 23 57 65 62 25 20 3a f4 20 52 65 | .#Web% :. Re|
00000120 6c 65 61 73 65 20 74 68 69 73 20 65 6e 64 20 6f |lease this end o|
00000130 66 20 73 6f 63 6b 65 74 2e 2e 2e 0d 00 64 0f 20 |f socket.....d. |
00000140 20 20 20 d9 23 46 69 6c 65 25 0d 00 6e 35 20 20 | .#File%..n5 |
00000150 20 20 ff 28 22 73 65 74 74 79 70 65 20 61 64 66 | .("settype adf|
00000160 73 3a 3a 34 2e 24 2e 77 65 62 70 61 67 65 20 66 |s::4.$.webpage f|
00000170 61 66 22 29 3a f4 20 66 61 66 3d 68 74 6d 6c 0d |af"):. faf=html.|
00000180 ff |.|
00000181
.