From: | Alexander Niven-Jenkins |
Date: | 30 Aug 2000 at 22:25:41 |
Subject: | httpget... |
Hiya,
For those that are interested (and I have had a few emails) I have sent
the updated version of my httpget routine for submission to the Amiga C
source rep. but for those who can't wait I have uploaded it to the egroups
file section as well.
Basically think of the old version as a pile of dung and this version as
Mika in a McClaren overtaking MS at 220mph :-)
It is far neater and will return the header and data data in seperate
buffers and will even download the file (incrementally) etc.
It's upto you what you want to know, if you only what the header info,
just supply a pointer to a header buffer etc...
See basic comments in sources.
This isn't the best version in the world, you not ging to run create www
browser from it :-) But it should prove perfectly adeaquate to those who
want to download files for version checking, automatic updates etc (that's
what I use it for).
The only other thing to mention is that I have literally taken the source
from my project so it contains calls to my error routines on error
(DisplayError()) so you'll have to change these. Nothing that'll hurt :-)
Also it is C++, although again, I doubt it take much to get it run under
normal C.
Enjoy :-)
Kind regards...
Alex