- requesting URLs
- sending and retrieving emails
- sending and retrieving files from an FTP server
Currently only requesting URLs is implemented. The implementation depends on the libcurl library!
Deprecated since version 0.8.8: Use the httpclient module instead.
Procs
proc URLretrieveStream(url: string): PStream {.raises: [E_Base], tags: [FWriteIO].}
- retrieves the given url and returns a stream which one can read from to obtain the contents. Returns nil if an error occurs.
proc URLretrieveString(url: string): TaintedString {.raises: [E_Base], tags: [FWriteIO].}
- retrieves the given url and returns the contents. Returns nil if an error occurs.