Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /sockopen F1 formual1.com 80
- on *:sockopen:F1:{
- sockwrite -n $sockname GET news/headlines/ HTTP/1.1
- sockwrite -n $sockname Host: formula1.com $+ $crlf $+ $crlf
- }
- on *:sockread:F1:{
- if ($sockerr) {
- echo -a Error.
- halt
- }
- else {
- var %temptext
- sockread %temptext
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement