Downloads (2.0): 37081

visits today: 107
total visits: 1249373

   Users on line:
Registered: 0
Guests: 1

Full Stats

Shared PC
free registration

Valid XHTML 1.0!

Valid CSS!

Fetch 27/04/2002

by: wombat


It can be used by scripters to pull pages or textfiles off any webpage. It can NOT pull binary files off the web I think.

You call it with the name of the alias you want the data passed on to, and the URL you want to get the data from. Optionally with a filter expression which will only pass data along that contains the filter word. As usual, feel free to use in any way you see fit. If you want to try it out, try these here:
/fetch href
The first one will pull the whole HTML of the start page, the second one only the HTTP header, the third one all the links, and display them locally as a list. You can ofcourse pass the data to your own alias and then parse the text using $listindex(). It's really not terribly useful, but it might serve as a simple example of the HTTP protocol and sockets handling in virc.

size: bytes

views: 6918 | downloads: 1923 | rating: 0.0 comments? | Send | Print

Copyright 2003 THeLooX